summaryrefslogtreecommitdiff
path: root/addons/base_automation/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/base_automation/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/base_automation/views')
-rw-r--r--addons/base_automation/views/base_automation_view.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/base_automation/views/base_automation_view.xml b/addons/base_automation/views/base_automation_view.xml
index 8902d8362f4..0ace9a48dc9 100644
--- a/addons/base_automation/views/base_automation_view.xml
+++ b/addons/base_automation/views/base_automation_view.xml
@@ -46,7 +46,7 @@
<attribute name='invisible'>1</attribute>
</xpath>
<xpath expr="//group[@name='action_content']" position="inside">
- <field name="active"/>
+ <field name="active" widget="boolean_toggle"/>
<field name="trigger"/>
<field name="trigger_field_ids" domain="[('model_id', '=', model_id)]" attrs="{'invisible': [('trigger', 'not in', ['on_write', 'on_create_or_write'])]}" widget="many2many_tags"/>
<field name="on_change_field_ids" string="Trigger Fields" domain="[('model_id', '=', model_id)]"