Skip to content
Snippets Groups Projects
Commit 61f1ca63 authored by Andrea Grazioso (agr-odoo)'s avatar Andrea Grazioso (agr-odoo)
Browse files

[FIX] account: disable Amount Matching when invisible


Go to Reconciliation Models > Invoices Matching Rule
Set the parameter 'Amount Matching'
Set 'Partner Is Set & Matches'
Save
Edit
Unset 'Partner Is Set & Matches'

'Amount Matching' will switch to invisible but is not disabled

opw-2261134

closes odoo/odoo#51994

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 9ba91e9a
Branches
Tags
No related merge requests found
......@@ -181,6 +181,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
####################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment