summaryrefslogtreecommitdiff
path: root/addons/l10n_ch
diff options
context:
space:
mode:
authorRavi Gohil <rgo@odoo.com>2020-03-24 06:28:24 +0000
committerRavi Gohil <rgo@odoo.com>2020-03-24 06:59:35 +0000
commitb4f0e758eb5bd38e04b3ed7637082f2f786f70af (patch)
tree94ad9dc99898aad966ee760769accd981fed55ce /addons/l10n_ch
parentd2bd6d69d647777fffe51c22cbb324e6d27a950f (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_ch')
-rw-r--r--addons/l10n_ch/views/res_config_settings_views.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/l10n_ch/views/res_config_settings_views.xml b/addons/l10n_ch/views/res_config_settings_views.xml
index bfe598cffe3..20eae297c4e 100644
--- a/addons/l10n_ch/views/res_config_settings_views.xml
+++ b/addons/l10n_ch/views/res_config_settings_views.xml
@@ -7,7 +7,7 @@
<field name="inherit_id" ref="account.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='invoicing_settings']" position="inside">
- <div class="col-12 col-lg-6 o_setting_box" id="l10n_ch-isr_print_bank">
+ <div class="col-12 col-lg-6 o_setting_box" id="l10n_ch-isr_print_bank" attrs="{'invisible': [('country_code', '!=', 'CH')]}">
<div class="o_setting_left_pane">
<field name="l10n_ch_print_qrcode"/>
</div>
@@ -38,7 +38,7 @@
</div>
</div>
</div>
- <div class="col-12 col-lg-6 o_setting_box" id="l10n_ch-isr_print_scanline_offset">
+ <div class="col-12 col-lg-6 o_setting_box" id="l10n_ch-isr_print_scanline_offset" attrs="{'invisible': [('country_code', '!=', 'CH')]}">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<span class="o_form_label">ISR scan line offset</span>