diff options
| author | Robot Odoo <xmo+roboto@odoo.com> | 2019-01-08 14:02:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-08 14:02:06 +0100 |
| commit | 671c45fbbfb261c95b6d37f9e16dee8bf71aadb4 (patch) | |
| tree | 4bb00c18ac7d8e7c8169b71e77b8d272ad9f889f /addons/lunch/data/lunch_data.xml | |
| parent | 8ed2a7e68abd754b6fc3721103a2c5572c0a2e02 (diff) | |
| parent | 6ab800135f4bc6662fd99873ca024780fd9e384d (diff) | |
[REV] lunch: Revert changes introduced in f727b8f0b57aad49f2ea8c54600ab73bbd02570f
YOLO
closes odoo/odoo#30025
Diffstat (limited to 'addons/lunch/data/lunch_data.xml')
| -rw-r--r-- | addons/lunch/data/lunch_data.xml | 15 |
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"> |
