diff --git a/addons/stock_account/models/account_move.py b/addons/stock_account/models/account_move.py index 1b56b5daf2a..d4a198f547e 100644 --- a/addons/stock_account/models/account_move.py +++ b/addons/stock_account/models/account_move.py @@ -223,6 +223,7 @@ class AccountMoveLine(models.Model): # OVERRIDE to use the stock input account by default on vendor bills when dealing # with anglo-saxon accounting. self.ensure_one() + self = self.with_company(self.move_id.journal_id.company_id) if self.product_id.type == 'product' \ and self.move_id.company_id.anglo_saxon_accounting \ and self.move_id.is_purchase_document():