Get journal from on_change_with_journal
Since #11884 use match pattern to find journal
This commit is contained in:
parent
d9e7dad1f9
commit
fdd8fb646b
|
@ -164,9 +164,9 @@ class AccountInvoiceFacturaeTestCase(CompanyTestMixin, ModuleTestCase):
|
||||||
with Transaction().set_user(0):
|
with Transaction().set_user(0):
|
||||||
invoice = Invoice()
|
invoice = Invoice()
|
||||||
invoice.type = 'out'
|
invoice.type = 'out'
|
||||||
invoice.on_change_type()
|
|
||||||
invoice.party = party
|
invoice.party = party
|
||||||
invoice.on_change_party()
|
invoice.on_change_party()
|
||||||
|
invoice.journal = invoice.on_change_with_journal()
|
||||||
invoice.payment_type = payment_receivable
|
invoice.payment_type = payment_receivable
|
||||||
invoice.payment_term = term
|
invoice.payment_term = term
|
||||||
invoice.currency = currency
|
invoice.currency = currency
|
||||||
|
|
Loading…
Reference in New Issue