<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

<!-- cancel order  -->

  		<record id="view_lunch_order_cancel" model="ir.ui.view">
            <field name="name">lunch.order.cancel.form</field>
            <field name="model">lunch.order.cancel</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Cancel Order">
                	<group colspan="4" >
                		 <label string="Are you sure you want to cancel this order ?"/>
                    </group>
                       	<separator string="" colspan="4" />
                    <group colspan="4" col="6">
                    	<button  icon="gtk-cancel" special="cancel" string="No"/>
                    	<button  icon="gtk-ok" name="cancel" string="Yes" type="object"/>
                   </group>
               </form>
            </field>
  		</record>

        <record id="action_lunch_order_cancel" model="ir.actions.act_window">
            <field name="name">Cancel Order</field>
            <field name="res_model">lunch.order.cancel</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
           <field name="view_id" ref="view_lunch_order_cancel"/>
           <field name="target">new</field>
        </record>

        <act_window id="action_lunch_order_cancel_values"
    		key2="client_action_multi" name="Cancel Order"
    		res_model="lunch.order.cancel" src_model="lunch.order"
    		view_mode="form" target="new" view_type="form" groups="base.group_tool_manager"/>

    </data>
</openerp>
