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, 2 insertions, 13 deletions
diff --git a/addons/lunch/data/lunch_data.xml b/addons/lunch/data/lunch_data.xml
index 2332d2e5272..0f269f42d0c 100644
--- a/addons/lunch/data/lunch_data.xml
+++ b/addons/lunch/data/lunch_data.xml
@@ -1,23 +1,12 @@
<?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.confirm()</field>
+ <field name="code">records.action_confirm()</field>
</record>
<record id="lunch_order_line_action_cancel" model="ir.actions.server">
@@ -25,7 +14,7 @@ if records:
<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.cancel()</field>
+ <field name="code">records.action_cancel()</field>
</record>
</data>
<data noupdate="0">