Debian Codegraph @

addons/l10n_nz/views/res_company_views.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3 <record id="view_company_form_inherit_l10n_nz" model="ir.ui.view">
4 <field name="name">res.company.form.inherit.l10n_nz</field>
5 <field name="model">res.company</field>
6 <field name="inherit_id" ref="base.view_company_form"/>
7 <field name="arch" type="xml">
8 <xpath expr="//field[@name='vat']" position="attributes">
9 <attribute name="invisible" add="country_code == 'NZ'" separator=" or "/>
10 </xpath>
11 <xpath expr="//field[@name='vat']" position="after">
12 <field name="vat" string="GST" invisible="country_code != 'NZ'"/>
13 </xpath>
14 <xpath expr="//field[@name='company_registry']" position="attributes">
15 <attribute name="invisible" add="country_code == 'NZ'" separator=" or "/>
16 </xpath>
17 <xpath expr="//field[@name='company_registry']" position="after">
18 <field name="company_registry" string="NZBN" invisible="country_code != 'NZ'"/>
19 </xpath>
20 </field>
21 </record>
22 </odoo>