addons-cm/purchase_collective/views/actions.xml

53 lines
2.1 KiB
XML

<odoo>
<data>
<record id="action_purchase_collective_order_open" model="ir.actions.act_window">
<field name="name">Open</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">purchase_collective.order</field>
<field name="view_mode">tree,form</field>
<field name="context">{
'search_default_my_sale_orders_filter': 1
}
</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to create a new Collective Purchase.
</p>
</field>
</record>
<record id="action_purchase_collective_order_confirmed" model="ir.actions.act_window">
<field name="name">Closed</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">purchase_collective.order</field>
<field name="view_mode">tree,form</field>
<field name="context">{
'search_default_my_sale_orders_filter': 1
}
</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to create a new Collective Purchase.
</p>
</field>
</record>
<record id="action_purchase_collective_order_cancel" model="ir.actions.act_window">
<field name="name">Cancelled</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">purchase_collective.order</field>
<field name="view_mode">tree,form</field>
<field name="context">{
'search_default_my_sale_orders_filter': 1
}
</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to create a new Collective Purchase.
</p>
</field>
</record>
</data>
</odoo>