summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroco-odoo <oco@odoo.com>2020-09-07 10:14:35 +0000
committeroco-odoo <oco@odoo.com>2020-09-09 08:43:21 +0000
commit10f58e490f3a7b7621b3cea9ef183ba8fa53d32f (patch)
treeb986a17ba5d7d134ed3a814d475411715f56eeec
parentd74db80d11e603719eefa5799ac1f8ac2afa2540 (diff)
[IMP] account: reconcile model form view: hide 'amount matching' setting for write-off rules
closes odoo/odoo#57166 Related: odoo/enterprise#12995 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
-rw-r--r--addons/account/views/account_reconcile_model_views.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/account/views/account_reconcile_model_views.xml b/addons/account/views/account_reconcile_model_views.xml
index db981e354d7..ae7883fcd60 100644
--- a/addons/account/views/account_reconcile_model_views.xml
+++ b/addons/account/views/account_reconcile_model_views.xml
@@ -125,8 +125,9 @@
attrs="{'invisible': [('match_transaction_type', '=', False)], 'required': [('match_transaction_type', '!=', False)]}"/>
</div>
<field name="match_same_currency" attrs="{'invisible': [('rule_type', '!=', 'invoice_matching')]}"/>
- <label for="match_total_amount"/>
- <div>
+
+ <label for="match_total_amount" attrs="{'invisible': [('rule_type', '!=', 'invoice_matching')]}"/>
+ <div attrs="{'invisible': [('rule_type', '!=', 'invoice_matching')]}">
<field name="match_total_amount" class="oe_inline"/>
<field name="match_total_amount_param" class="oe_inline"
attrs="{'invisible': [('match_total_amount', '=', False)]}"/>