Set invoice account only when changing party or dates

issue12239
This commit is contained in:
Raimon Esteve 2023-05-16 13:33:26 +02:00
parent 1b530cad80
commit 45d0a9f103
1 changed files with 4 additions and 4 deletions

View File

@ -420,7 +420,7 @@ class AccountImportContaplus(Wizard):
totals[invoice.number] = totals[invoice.number] * -1
invoice.on_change_party()
invoice.account = invoice.on_change_with_account()
invoice._update_account()
# on_change_party sets the payment term.
# invoice.payment_term = invoice.on_change_with_payment_term()