diff options
| author | Ravi Gohil <rgo@odoo.com> | 2020-03-24 06:28:24 +0000 |
|---|---|---|
| committer | Ravi Gohil <rgo@odoo.com> | 2020-03-24 06:59:35 +0000 |
| commit | b4f0e758eb5bd38e04b3ed7637082f2f786f70af (patch) | |
| tree | 94ad9dc99898aad966ee760769accd981fed55ce /addons/l10n_it_edi | |
| parent | d2bd6d69d647777fffe51c22cbb324e6d27a950f (diff) | |
[IMP] l10n_xx: hide country specific fields from company/settings view
There are few fields added on settings and on company form view
by various l10n modules which are meant for particular country's
user and are of no use to others. Such fields should be hidden
from unrelated users. With this commit, it will be the case.
closes odoo/odoo#35755
Task: 2049977
Closes: #35755
Related: odoo/enterprise#5158
Related: odoo/enterprise#5158
Signed-off-by: Josse Colpaert <jco@openerp.com>
Diffstat (limited to 'addons/l10n_it_edi')
| -rw-r--r-- | addons/l10n_it_edi/views/l10n_it_view.xml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/addons/l10n_it_edi/views/l10n_it_view.xml b/addons/l10n_it_edi/views/l10n_it_view.xml index e92e1ac5a78..e002a945479 100644 --- a/addons/l10n_it_edi/views/l10n_it_view.xml +++ b/addons/l10n_it_edi/views/l10n_it_view.xml @@ -57,16 +57,16 @@ <field name="arch" type="xml"> <data> <xpath expr="//div[hasclass('o_address_format')]" position="after"> - <field name="l10n_it_mail_pec_server_id"/> - <field name="l10n_it_address_send_fatturapa"/> - <field name="l10n_it_address_recipient_fatturapa"/> + <field name="l10n_it_mail_pec_server_id" attrs="{'invisible': [('country_code', '!=', 'IT')]}"/> + <field name="l10n_it_address_send_fatturapa" attrs="{'invisible': [('country_code', '!=', 'IT')]}"/> + <field name="l10n_it_address_recipient_fatturapa" attrs="{'invisible': [('country_code', '!=', 'IT')]}"/> </xpath> <xpath expr="//field[@name='vat']" position="after"> - <field name="l10n_it_codice_fiscale"/> - <field name="l10n_it_tax_system"/> + <field name="l10n_it_codice_fiscale" attrs="{'invisible': [('country_code', '!=', 'IT')]}"/> + <field name="l10n_it_tax_system" attrs="{'invisible': [('country_code', '!=', 'IT')]}"/> </xpath> <xpath expr="//page" position="after"> - <page string="Electronic Invoicing" name="electronic_invoicing"> + <page string="Electronic Invoicing" name="electronic_invoicing" attrs="{'invisible': [('country_code', '!=', 'IT')]}"> <group> <separator string="Economic and Administrative Index" colspan="4"/> <div colspan="4"> |
