diff --git a/account_interests/models/res_company_interest.py b/account_interests/models/res_company_interest.py index 559701dae..6f3de8a38 100644 --- a/account_interests/models/res_company_interest.py +++ b/account_interests/models/res_company_interest.py @@ -125,8 +125,9 @@ def _get_move_line_domains(self, to_date): self.ensure_one() move_line_domain = [ ('account_id', 'in', self.receivable_account_ids.ids), - ('full_reconcile_id', '=', False), - ('date_maturity', '<', to_date) + ('date_maturity', '<', to_date), + ('move_id.state', '=', 'posted'), + '|', ('full_reconcile_id', '=', False), ('reconciled', '=', False), ] return move_line_domain