Skip to content
Snippets Groups Projects
Commit 4b11e3e3 authored by tdi-odoo's avatar tdi-odoo Committed by qdp-odoo
Browse files

[FIX] account: set fiscal position on customer invoice in the same fashion as on SO

parent 31894384
No related branches found
No related tags found
No related merge requests found
......@@ -480,7 +480,9 @@ class AccountInvoice(models.Model):
else:
account_id = pay_account.id
payment_term_id = p.property_supplier_payment_term_id.id
fiscal_position = p.property_account_position_id.id
addr = self.partner_id.address_get(['delivery'])
fiscal_position = self.env['account.fiscal.position'].get_fiscal_position(self.partner_id.id, delivery_id=addr['delivery'])
bank_id = p.bank_ids and p.bank_ids.ids[0] or False
# If partner has no warning, check its company
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment