[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
This commit is contained in:
Hiral Bhavsar
2019-07-10 15:07:57 +00:00
committed by Thibault Delavallée
parent 5a2c3286ea
commit 6eef0ea0b7
2 changed files with 2 additions and 9 deletions
+2
View File
@@ -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>
-9
View File
@@ -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>