summaryrefslogtreecommitdiff
path: root/addons/lunch/data/lunch_data.xml
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2019-01-08 13:12:33 +0100
committerYannick Tivisse <yti@odoo.com>2019-01-08 13:12:33 +0100
commitd1c3948a05acbe73fc6965833a442a1b35efdbf8 (patch)
tree0a6ba422c415c2c57cd2cde9ddea12e2c1c49f46 /addons/lunch/data/lunch_data.xml
parent7eefa3758327e0f09190c740a3a4d498fba40605 (diff)
Revert "[IMP] lunch: automatize lunch orders"
This reverts commit f727b8f0b57aad49f2ea8c54600ab73bbd02570f.
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">