From cb2141d98cdb0ef3b2d67e9bd82ed31ab82e1e62 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Thu, 28 Sep 2017 10:18:05 +0200 Subject: [PATCH] Use used properties for account payable and receivable issue6561 review38471002 --- invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invoice.py b/invoice.py index 57b531d2b3..828b9da8d2 100644 --- a/invoice.py +++ b/invoice.py @@ -442,11 +442,11 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin): self.account = None if self.party: if self.type == 'out': - self.account = self.party.account_receivable + self.account = self.party.account_receivable_used if self.party.customer_payment_term: self.payment_term = self.party.customer_payment_term elif self.type == 'in': - self.account = self.party.account_payable + self.account = self.party.account_payable_used if self.party.supplier_payment_term: self.payment_term = self.party.supplier_payment_term