Use account_receivable_used as invoice account
Since issue8522, on_change_type does not set the account anymore. So we must ensure to set the default value if the party has no account defined.
This commit is contained in:
1 parent
cbae11dc57
commit
6d6efde22b
1 file changed
+1
-1
+1
-1
@@ -368,7 +368,7 @@ class Subscription(Workflow, ModelSQL, ModelView):
|
||||
party=self.party,
|
||||
invoice_address=self.invoice_address,
|
||||
currency=self.currency,
|
||||
account=self.party.account_receivable,
|
||||
account=self.party.account_receivable_used,
|
||||
)
|
||||
invoice.on_change_type()
|
||||
invoice.payment_term = self.payment_term
|
||||
|
||||
Reference in new issue
Block a user