<?xml version="1.0" encoding="utf-8"?>
<odoo>
        <record id="view_tax_form_inherited" model="ir.ui.view">
            <field name="name">account.tax.form.inherited</field>
            <field name="model">account.tax</field>
            <field name="inherit_id" ref="account.view_tax_form" />
            <field name="arch" type="xml">
                 <xpath expr="//field[@name='amount_type']" position="after">
                    <field name="formula" invisible="amount_type != 'code'" required="amount_type == 'code'" />
                </xpath>
            </field>
        </record>
</odoo>
