summaryrefslogtreecommitdiff
path: root/addons/google_drive/views
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/google_drive/views
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/google_drive/views')
-rw-r--r--addons/google_drive/views/google_drive_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/google_drive/views/google_drive_views.xml b/addons/google_drive/views/google_drive_views.xml
index 2790bfff9a7..2879c4e6299 100644
--- a/addons/google_drive/views/google_drive_views.xml
+++ b/addons/google_drive/views/google_drive_views.xml
@@ -21,7 +21,7 @@
<field name="model" invisible="1" />
<group>
<field name="name" />
- <field name="active" />
+ <field name="active" widget="boolean_toggle"/>
<field name="model_id"/>
<label for='filter_id' />
<div>