summaryrefslogtreecommitdiff
path: root/addons/website_customer/views/res_partner_views.xml
diff options
context:
space:
mode:
authorNisha patel <nit@odoo.com>2020-02-28 12:22:20 +0000
committerBarad Mahendra <mba@openerp.com>2020-03-02 06:26:02 +0000
commit159699b09c17ba4a56cc634e6ca2585f8a030384 (patch)
treeefc4cffeedca5ff1a699e4e85b1897b5ba0d3353 /addons/website_customer/views/res_partner_views.xml
parent8a6e6484ba8f6aea6ef6fd212b089276ef35884e (diff)
[IMP] various: set boolean_toggle on 'active' fields in form view
Currently, to activate/deactivate records with the 'active' checkbox user has to switch to edit mode of the form. So the purpose of the task is to allow the user to activate/deactivate records from the readonly mode of the form view. In this commit, we set widget='boolean_toggle' on the 'active' field in form view. closes odoo/odoo#46567 Taskid: 2206794 Related: https://github.com/odoo/enterprise/pull/8918 Related: odoo/enterprise#8918 Closes: #46567 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/website_customer/views/res_partner_views.xml')
-rw-r--r--addons/website_customer/views/res_partner_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_customer/views/res_partner_views.xml b/addons/website_customer/views/res_partner_views.xml
index 453a4c0f68c..4aaa3aae66c 100644
--- a/addons/website_customer/views/res_partner_views.xml
+++ b/addons/website_customer/views/res_partner_views.xml
@@ -23,7 +23,7 @@
<field name="name"/>
<field name="classname"/>
<field name="is_published"/>
- <field name="active"/>
+ <field name="active" widget="boolean_toggle"/>
</group>
</sheet>
</form>