Set invoice journal in get_intercompany_invoice
Since #11884 use match pattern to find journal
This commit is contained in:
parent
45cc7b205e
commit
ac07ec948d
|
@ -194,6 +194,7 @@ class Invoice(metaclass=PoolMeta):
|
|||
invoice.reference = self.number
|
||||
invoice.on_change_party()
|
||||
invoice.account = self.get_intercompany_account()
|
||||
invoice.journal = invoice.on_change_with_journal()
|
||||
lines = []
|
||||
for line in self.lines:
|
||||
lines.append(line.get_intercompany_line())
|
||||
|
|
Loading…
Reference in New Issue