Set invoice journal only when type is changed

issue12239
This commit is contained in:
Raimon Esteve 2023-05-11 12:15:14 +02:00
parent 863d29d4ca
commit b5d0f61224
1 changed files with 2 additions and 1 deletions

View File

@ -179,7 +179,8 @@ class AccountEsTestCase(CompanyTestMixin, ModuleTestCase):
invoice.account = payable
else:
invoice.account = receivable
invoice.journal = invoice.on_change_with_journal()
invoice.set_journal()
invoice.party = party
invoice.on_change_party()
invoice.payment_term = term