summaryrefslogtreecommitdiff
path: root/addons/base_setup
diff options
context:
space:
mode:
authorAurélien Pillevesse <aurelienpillevesse@hotmail.fr>2019-12-04 10:53:26 +0000
committerMartin Trigaux <mat@odoo.com>2019-12-23 15:57:36 +0000
commit800f21a89476468345066c94f28e5ed2dc4d4652 (patch)
treece5fe5e48e735de833ab675305777de6ffc6259d /addons/base_setup
parente25ea9e665de063f118be27e360abd8df0905bf4 (diff)
[IMP] base_setup: conjugate the view content
Update company and language translations with condition closes odoo/odoo#41311 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/base_setup')
-rw-r--r--addons/base_setup/views/res_config_settings_views.xml10
1 files changed, 8 insertions, 2 deletions
diff --git a/addons/base_setup/views/res_config_settings_views.xml b/addons/base_setup/views/res_config_settings_views.xml
index 03c5e324d73..1392290799f 100644
--- a/addons/base_setup/views/res_config_settings_views.xml
+++ b/addons/base_setup/views/res_config_settings_views.xml
@@ -51,7 +51,10 @@
<div class="col-12 col-lg-6 o_setting_box" id="companies_setting">
<div class="o_setting_right_pane">
<field name='company_count' class="w-auto pl-1 font-weight-bold"/>
- <span class="o_form_label">
+ <span class='o_form_label' attrs="{'invisible':[('company_count', '&gt;', '1')]}">
+ Company
+ </span>
+ <span class='o_form_label' attrs="{'invisible':[('company_count', '&lt;=', '1')]}">
Companies
</span>
<br/>
@@ -71,7 +74,10 @@
<!-- TODO This is not an ideal solution but it looks ok on the interface -->
<div class="w-50">
<field name="language_count" class="w-auto pl-1 font-weight-bold"/>
- <span class="o_form_label">
+ <span class='o_form_label' attrs="{'invisible':[('language_count', '&gt;', '1')]}">
+ Language
+ </span>
+ <span class='o_form_label' attrs="{'invisible':[('language_count', '&lt;=', '1')]}">
Languages
</span>
</div>