From ef843ea0c6087f5065c51aa9b11619f8fffbfcaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 3 Apr 2021 14:27:10 +0200 Subject: [PATCH] Add company pattern to multivalue calls issue10162 review335761002 --- stock.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stock.py b/stock.py index 949be35e9b..4c182e3ee5 100644 --- a/stock.py +++ b/stock.py @@ -139,8 +139,10 @@ class Move(metaclass=PoolMeta): account_move_lines.append(move_line) account_configuration = AccountConfiguration(1) + journal = account_configuration.get_multivalue( + 'stock_journal', company=self.company.id) return AccountMove( - journal=account_configuration.stock_journal, + journal=journal, period=period_id, date=date, origin=self,