| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | <data> |
| 4 | <record id="view_company_form" model="ir.ui.view"> |
| 5 | <field name="name">res.company.l10n_sa_edi.form</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='country_id']" position="after"> |
| 10 | <field name="l10n_sa_edi_building_number" placeholder="Building Number" |
| 11 | invisible="country_code != 'SA'" |
| 12 | class="o_address_building_number" options='{"no_open": True, "no_create": True}'/> |
| 13 | <field name="l10n_sa_edi_plot_identification" placeholder="Plot Identification" |
| 14 | invisible="country_code != 'SA'" |
| 15 | class="o_address_plot_identification" options='{"no_open": True, "no_create": True}'/> |
| 16 | </xpath> |
| 17 | <xpath expr="//field[@name='vat']" position="before"> |
| 18 | <field name="l10n_sa_edi_additional_identification_scheme" invisible="country_code != 'SA'"/> |
| 19 | <field name="l10n_sa_edi_additional_identification_number" string="Identification Number" invisible="country_code != 'SA' or l10n_sa_edi_additional_identification_scheme == 'TIN'"/> |
| 20 | </xpath> |
| 21 | <xpath expr="//field[@name='street2']" position="replace"> |
| 22 | <field name="street2" placeholder="District" class="o_address_street" invisible="country_code != 'SA'"/> |
| 23 | <field name="street2" placeholder="Street 2..." class="o_address_street" invisible="country_code == 'SA'"/> |
| 24 | </xpath> |
| 25 | </field> |
| 26 | </record> |
| 27 | </data> |
| 28 | </odoo> |