summaryrefslogtreecommitdiff
path: root/addons/lunch/data/lunch_data.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/lunch/data/lunch_data.xml')
-rw-r--r--addons/lunch/data/lunch_data.xml15
1 files changed, 13 insertions, 2 deletions
diff --git a/addons/lunch/data/lunch_data.xml b/addons/lunch/data/lunch_data.xml
index 0f269f42d0c..2332d2e5272 100644
--- a/addons/lunch/data/lunch_data.xml
+++ b/addons/lunch/data/lunch_data.xml
@@ -1,12 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
+ <record id="lunch_order_line_action_order" model="ir.actions.server">
+ <field name="name">Lunch: Order meals</field>
+ <field name="model_id" ref="model_lunch_order_line"/>
+ <field name="binding_model_id" ref="model_lunch_order_line"/>
+ <field name="state">code</field>
+ <field name="code">
+if records:
+ action = records.order()
+ </field>
+ </record>
+
<record id="lunch_order_line_action_confirm" model="ir.actions.server">
<field name="name">Lunch: Receive meals</field>
<field name="model_id" ref="model_lunch_order_line"/>
<field name="binding_model_id" ref="model_lunch_order_line"/>
<field name="state">code</field>
- <field name="code">records.action_confirm()</field>
+ <field name="code">records.confirm()</field>
</record>
<record id="lunch_order_line_action_cancel" model="ir.actions.server">
@@ -14,7 +25,7 @@
<field name="model_id" ref="model_lunch_order_line"/>
<field name="binding_model_id" ref="model_lunch_order_line"/>
<field name="state">code</field>
- <field name="code">records.action_cancel()</field>
+ <field name="code">records.cancel()</field>
</record>
</data>
<data noupdate="0">