23 lines
1.1 KiB
XML
23 lines
1.1 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<odoo>
|
||
|
<record id="view_company_form_inherit_l10n_nz" model="ir.ui.view">
|
||
|
<field name="name">res.company.form.inherit.l10n_nz</field>
|
||
|
<field name="model">res.company</field>
|
||
|
<field name="inherit_id" ref="base.view_company_form"/>
|
||
|
<field name="arch" type="xml">
|
||
|
<xpath expr="//field[@name='vat']" position="attributes">
|
||
|
<attribute name="invisible" add="country_code == 'NZ'" separator=" or "/>
|
||
|
</xpath>
|
||
|
<xpath expr="//field[@name='vat']" position="after">
|
||
|
<field name="vat" string="GST" invisible="country_code != 'NZ'"/>
|
||
|
</xpath>
|
||
|
<xpath expr="//field[@name='company_registry']" position="attributes">
|
||
|
<attribute name="invisible" add="country_code == 'NZ'" separator=" or "/>
|
||
|
</xpath>
|
||
|
<xpath expr="//field[@name='company_registry']" position="after">
|
||
|
<field name="company_registry" string="NZBN" invisible="country_code != 'NZ'"/>
|
||
|
</xpath>
|
||
|
</field>
|
||
|
</record>
|
||
|
</odoo>
|