Skip to content

Commit

Permalink
[FIX] sale_unreconciled: multicompany for get unreconciled base domain
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronHForgeFlow committed Nov 21, 2022
1 parent 4c97eed commit 794c775
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sale_unreconciled/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]]
)
Expand Down

0 comments on commit 794c775

Please sign in to comment.