| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<data> |
| 4 |
<record id="ec_view_tax_form_inherit" model="ir.ui.view"> |
| 5 |
<field name="name">ec_view_tax_form_inherit</field> |
| 6 |
<field name="model">account.tax</field> |
| 7 |
<field name="inherit_id" ref="account.view_tax_form"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<xpath expr="//field[@name='amount_type']" position="after"> |
| 10 |
<field name="l10n_tw_edi_tax_type" invisible="country_code != 'TW'"/> |
| 11 |
<field name="l10n_tw_edi_special_tax_type" |
| 12 |
invisible="country_code != 'TW' or l10n_tw_edi_tax_type not in ['3', '4']" |
| 13 |
required="country_code == 'TW' and l10n_tw_edi_tax_type == '4'"/> |
| 14 |
</xpath> |
| 15 |
</field> |
| 16 |
</record> |
| 17 |
</data> |
| 18 |
</odoo> |