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

    	<record id="view_project_task_delegate" model="ir.ui.view">
            <field name="name">Project Task Delegate</field>
            <field name="model">project.task.delegate</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
              	<form string="Project Task Delegate">
                      <group colspan="2" col="2">
	                        <separator string="Delegated Task" colspan="4"/>
		                    <field name="user_id" colspan="4"/>
		                    <field name="planned_hours" widget="float_time" colspan="4"/>
		                    <field name="name" colspan="4"/>
		                    <field name="new_task_description" colspan="4" />
                      </group>
                      <group colspan="2" col="2">
		                    <separator string="Validation Task" colspan="4"/>
		                    <field name="planned_hours_me"  widget="float_time" colspan="4"/>
           	                <field name="prefix" string="Validatation Task Title" colspan="4"/>
                            <field name="state" colspan="4"/>
		              </group>
                      <separator string="" colspan="4"/>
                      <group colspan="2" col="2">
                      </group>
		              <group colspan="2" col="2">
		            		<button icon="gtk-close" special="cancel" string="_Cancel"/>
		            		<button icon="gtk-ok" name="delegate" string="_Delegate" type="object"/>
		              </group>
			  	</form>
            </field>
		</record>

		<record id="action_project_task_delegate" model="ir.actions.act_window">
	           <field name="name">Project Task Delegate</field>
	           <field name="type">ir.actions.act_window</field>
	           <field name="res_model">project.task.delegate</field>
	           <field name="view_type">form</field>
	           <field name="view_mode">form</field>
	           <field name="view_id" ref="view_project_task_delegate"/>
		       <field name="context">{'record_id' : active_id}</field>
	           <field name="target">new</field>
    	</record>

    </data>
</openerp>
