Set invoice journal only when type is changed

issue12239
This commit is contained in:
Raimon Esteve 2023-05-11 12:14:00 +02:00
parent 309ec602c2
commit c559650268
1 changed files with 2 additions and 2 deletions

View File

@ -166,12 +166,12 @@ class AccountInvoiceFacturaeTestCase(CompanyTestMixin, ModuleTestCase):
invoice.type = 'out'
invoice.party = party
invoice.on_change_party()
invoice.journal = invoice.on_change_with_journal()
invoice.payment_type = payment_receivable
invoice.payment_term = term
invoice.currency = currency
invoice.company = company
invoice.account = invoice.on_change_with_account()
invoice.set_journal()
invoice._update_account()
line1 = InvoiceLine()
line1.company = company