<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<object-views xmlns="http://axelor.com/xml/ns/object-views"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://axelor.com/xml/ns/object-views http://axelor.com/xml/ns/object-views/object-views_5.2.xsd">

    <grid name="tax-equiv-grid" title="Taxes equivalences" model="com.axelor.apps.account.db.TaxEquiv" orderBy="fromTax">
        <field name="fromTax" form-view="tax-form" grid-view="tax-grid"/>
        <field name="toTax" form-view="tax-form" grid-view="tax-grid"/>
        <field name="reverseCharge" width="125px"/>
    </grid>

    <form name="tax-equiv-form" title="Tax equivalence" model="com.axelor.apps.account.db.TaxEquiv" onLoad="action-tax-equiv-group-onload">
        <panel name="mainPanel">
            <field name="fromTax" form-view="tax-form" grid-view="tax-grid"/>
            <field name="toTax" form-view="tax-form" grid-view="tax-grid"/>
            <field name="reverseCharge" />
            <field name="reverseChargeTax" form-view="tax-form" grid-view="tax-grid" showIf="reverseCharge"/>
            <field name="specificNote" colSpan="12" hidden="true"/>
        </panel>
    </form>

    <action-group name="action-tax-equiv-group-onload">
        <action name="action-tax-equiv-attrs-hide-specific-note"/>
    </action-group>

    <action-attrs name="action-tax-equiv-attrs-hide-specific-note">
        <attribute for="specificNote" name="hidden" expr="eval: __parent__?.customerSpecificNote"/>
    </action-attrs>

</object-views>