From c5596502686ff493f7a326d9683129249ca10d04 Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Thu, 11 May 2023 12:14:00 +0200 Subject: [PATCH] Set invoice journal only when type is changed issue12239 --- tests/test_module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_module.py b/tests/test_module.py index 7820edb..fd45944 100644 --- a/tests/test_module.py +++ b/tests/test_module.py @@ -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