mirror of
https://github.com/bringout/oca-ocb-l10n_me-africa.git
synced 2026-04-28 06:22:05 +02:00
19.0 vanilla
This commit is contained in:
parent
c5006a6999
commit
80293571e7
420 changed files with 21812 additions and 44297 deletions
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<record id="view_company_form" model="ir.ui.view">
|
||||
<field name="name">res.company.form.inherit.l10n_ma</field>
|
||||
<field name="model">res.company</field>
|
||||
<field name="inherit_id" ref="account.view_company_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='company_registry']" position="attributes">
|
||||
<attribute name="invisible" add="country_code == 'MA'" separator=" or "/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='company_registry']" position="after">
|
||||
<field name="company_registry" string="ICE" invisible="country_code != 'MA'"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="view_partner_property_form" model="ir.ui.view">
|
||||
<field name="name">res.partner.form.inherit.l10n_ma</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='company_registry']" position="attributes">
|
||||
<attribute name="invisible" add="country_code == 'MA'" separator=" or "/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='vat']" position="after">
|
||||
<field name="company_registry" string="ICE" invisible="country_code != 'MA'"></field>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue