2018-01-16 06:58:15 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-01-16 11:34:37 +01:00
|
|
|
<flectra>
|
2018-01-16 06:58:15 +01:00
|
|
|
<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:
|
|
|
|
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>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="lunch_order_line_action_cancel" model="ir.actions.server">
|
|
|
|
<field name="name">Lunch: Cancel 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.cancel()</field>
|
|
|
|
</record>
|
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
</flectra>
|