Debian Codegraph @

addons/l10n_au/views/res_company_views.xml

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