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

        <record id="view_event_confirm" model="ir.ui.view">
            <field name="name">Event Confirmation</field>
            <field name="model">event.confirm</field>
            <field name="arch" type="xml">
              <form string="Event Confirmation" version="7.0">
                  <label string="Warning: This Event has not reached its Minimum Registration Limit. Are you sure you want to confirm it?"/>
                  <footer>
                      <button name="confirm" string="Confirm Anyway" type="object" class="oe_highlight"/>
                      or
                      <button string="Cancel" class="oe_link" special="cancel" />
                  </footer>
            </form>
            </field>
        </record>

        <record id="action_event_confirm" model="ir.actions.act_window">
            <field name="name">Event Confirmation</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">event.confirm</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_event_confirm"/>
            <field name="context">{'record_id' : active_id}</field>
            <field name="target">new</field>
        </record>

    </data>
</openerp>
