diff --git a/addons/account/models/account_reconcile_model.py b/addons/account/models/account_reconcile_model.py index f0228acd0bd..b65f9ca9ebc 100644 --- a/addons/account/models/account_reconcile_model.py +++ b/addons/account/models/account_reconcile_model.py @@ -207,6 +207,11 @@ class AccountReconcileModel(models.Model): if self.match_total_amount_param < 0 or self.match_total_amount_param > 100: self.match_total_amount_param = min(max(0, self.match_total_amount_param), 100) + @api.onchange('match_partner') + def _onchange_match_partner(self): + if not self.match_partner: + self.match_total_amount = False + #################################################### # RECONCILIATION PROCESS ####################################################