account_tax_views.xml 1.1 KB

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id="account_tax_form_inherit_l10n_es_edi" model="ir.ui.view">
  5. <field name="name">account.tax.form.inherit.l10n_es_edi</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='tax_scope']" position="after">
  10. <field name="l10n_es_type"
  11. attrs="{'invisible': [('country_code', '!=', 'ES')]}"/>
  12. <field name="l10n_es_exempt_reason"
  13. attrs="{'invisible': [('country_code', '!=', 'ES'), ('l10n_es_type', '!=', 'exento')], 'required': [('l10n_es_type', '=', 'exento'), ('type_tax_use', '=', 'sale')]}"/>
  14. <field name="l10n_es_bien_inversion"
  15. attrs="{'invisible': [('country_code', '!=', 'ES'), ('l10n_es_type', '!=', 'exento')], 'required': [('l10n_es_type', '=', 'exento'), ('type_tax_use', '=', 'sale')]}"/>
  16. </xpath>
  17. </field>
  18. </record>
  19. </data>
  20. </odoo>