diff --git a/sale_unreconciled/models/sale_order.py b/sale_unreconciled/models/sale_order.py index 6e00b36913da..7e74e1dbb8b4 100644 --- a/sale_unreconciled/models/sale_order.py +++ b/sale_unreconciled/models/sale_order.py @@ -43,7 +43,9 @@ def _get_sale_unreconciled_base_domain(self): def _compute_unreconciled(self): acc_item = self.env["account.move.line"] for rec in self: - domain = rec._get_sale_unreconciled_base_domain() + domain = rec.with_company( + rec.company_id + )._get_sale_unreconciled_base_domain() unreconciled_domain = expression.AND( [domain, [("sale_order_id", "=", rec.id)]] )