<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <record id="view_account_reconcile_model_form" model="ir.ui.view">
        <field name="name">account.reconcile.model.form</field>
        <field name="model">account.reconcile.model</field>
        <field name="inherit_id" ref="account.view_account_reconcile_model_form" />
        <field name="arch" type="xml">
            <xpath expr="//div[field[@name='match_total_amount']]" position="after">
                <field
                    name="strict_match_total_amount"
                    attrs="{'invisible': ['|', ('rule_type', '!=', 'invoice_matching'), ('match_total_amount', '=', False)]}"
                />
            </xpath>
            <xpath
                expr="//div[field[@name='match_total_amount']]/div[hasclass('text-muted')]"
                position="attributes"
            >
                <attribute
                    name="attrs"
                >{'invisible': ['|', '|', ('rule_type', '!=', 'invoice_matching'), ('match_total_amount', '=', False), ('strict_match_total_amount', '=', True)]}</attribute>
            </xpath>
        </field>
    </record>
</odoo>
