From 1f7fa31b173a0c804ba8f84ccaf4f0606393c015 Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Mon, 15 May 2023 10:41:17 +0200 Subject: [PATCH] Set invoice journal only when type is changed issue12239 --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index dbd4eff..cdb4fb2 100644 --- a/invoice.py +++ b/invoice.py @@ -185,7 +185,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() + invoice.set_journal() lines = [] for line in self.lines: lines.append(line.get_intercompany_line())