Get journal from on_change_with_journal

Since #11884 use match pattern to find journal
This commit is contained in:
Raimon Esteve 2023-01-09 15:15:29 +01:00
parent d9e7dad1f9
commit fdd8fb646b
1 changed files with 1 additions and 1 deletions

View File

@ -164,9 +164,9 @@ class AccountInvoiceFacturaeTestCase(CompanyTestMixin, ModuleTestCase):
with Transaction().set_user(0):
invoice = Invoice()
invoice.type = 'out'
invoice.on_change_type()
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