From 27f59472a0712ad9261ef210de8426fbfa2a311b Mon Sep 17 00:00:00 2001 From: Ignacio Cainelli Date: Thu, 16 Mar 2023 16:11:29 +0000 Subject: [PATCH] [FIX] account_interests: change domain partner.active isn't a field and causes an error, partner_id.active is the correct form X-original-commit: ebe0d77b07b787f8656291a8ae4e11769190c716 --- account_interests/models/res_company_interest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account_interests/models/res_company_interest.py b/account_interests/models/res_company_interest.py index c5302d9d5..fd2ee0a16 100644 --- a/account_interests/models/res_company_interest.py +++ b/account_interests/models/res_company_interest.py @@ -125,7 +125,8 @@ def _get_move_line_domains(self, to_date): move_line_domain = [ ('account_id', 'in', self.receivable_account_ids.ids), ('full_reconcile_id', '=', False), - ('date_maturity', '<', to_date) + ('date_maturity', '<', to_date), + ('partner_id.active', '=', True), ] return move_line_domain