summaryrefslogtreecommitdiff
path: root/addons
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
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')
-rw-r--r--addons/lunch/data/lunch_data.xml2
-rw-r--r--addons/lunch/views/lunch_views.xml9
2 files changed, 2 insertions, 9 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>
diff --git a/addons/lunch/views/lunch_views.xml b/addons/lunch/views/lunch_views.xml
index 69fda39e04c..88e5d61a280 100644
--- a/addons/lunch/views/lunch_views.xml
+++ b/addons/lunch/views/lunch_views.xml
@@ -22,13 +22,4 @@
<menuitem name="Product Categories" parent="menu_lunch_config" id="lunch_product_category_menu" action="lunch_product_category_action" sequence="5"/>
<menuitem name="Alerts" parent="menu_lunch_config" id="lunch_alert_menu" action="lunch_alert_action" sequence="6"/>
-
- <record id="action_server_lunch_archive_product" model="ir.actions.server">
- <field name="name">Lunch: Archive/Restore products</field>
- <field name="type">ir.actions.server</field>
- <field name="model_id" ref="model_lunch_product" />
- <field name="binding_model_id" ref="model_lunch_product" />
- <field name="state">code</field>
- <field name="code">records.toggle_active()</field>
- </record>
</odoo>