summaryrefslogtreecommitdiff
path: root/addons/lunch/data
diff options
context:
space:
mode:
authorHiral Bhavsar <hbh@odoo.com>2019-05-16 13:49:25 +0000
committerThibault Delavallée <tde@odoo.com>2019-07-10 15:07:57 +0000
commit6eef0ea0b79fc34ac8aa6f8cd140ea88eadad175 (patch)
tree966678dfd2da52f951bb56bbd2dad207942717e1 /addons/lunch/data
parent5a2c3286ea0dc40fcef7392b8e911cbd22bed395 (diff)
[IMP] lunch: clean the controlpanel actions
- For the model 'lunch.order', rename the actions menu 'Lunch: Receive meals' by 'Mark as received' and 'Lunch: Cancel meals' by 'Cancel'. - For the model 'lunch.product', remove the action menu 'Lunch: Archive/Restore products' Linked to task 1984526 Related to PR #33720
Diffstat (limited to 'addons/lunch/data')
-rw-r--r--addons/lunch/data/lunch_data.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/lunch/data/lunch_data.xml b/addons/lunch/data/lunch_data.xml
index 30b3ce4b53c..eaebd47d2e0 100644
--- a/addons/lunch/data/lunch_data.xml
+++ b/addons/lunch/data/lunch_data.xml
@@ -5,6 +5,7 @@
<field name="name">Lunch: Receive meals</field>
<field name="model_id" ref="model_lunch_order"/>
<field name="binding_model_id" ref="model_lunch_order"/>
+ <field name="binding_view_types">list</field>
<field name="state">code</field>
<field name="code">records.action_confirm()</field>
</record>
@@ -13,6 +14,7 @@
<field name="name">Lunch: Cancel meals</field>
<field name="model_id" ref="model_lunch_order"/>
<field name="binding_model_id" ref="model_lunch_order"/>
+ <field name="binding_view_types">list</field>
<field name="state">code</field>
<field name="code">records.action_cancel()</field>
</record>