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

    	<record id="view_project_task_close" model="ir.ui.view">
            <field name="name">Send Email</field>
            <field name="model">project.task.close</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
              	<form string="Send Email">
              		  <group colspan="4" col="4">
                            <field name="manager_warn" invisible="1"/>
		                    <field name="manager_email" widget="email" attrs="{'invisible':[('manager_warn','=',False)], 'required':[('manager_warn','=',True)]}" width="250"/>
                            <field name="partner_warn" invisible="1"/>
		                    <field name="partner_email" widget="email" attrs="{'invisible':[('partner_warn','=',False)], 'required':[('partner_warn','=',True)]}"/>
					        <separator string="Warn Message" colspan="4"/>
		                    <field name="description" nolabel="1" colspan="4" width="200" height="150"/>
		              </group>
		              <separator string="" colspan="4"/>
                      <group colspan="2" col="2">
                      </group>
		              <group colspan="2" col="3">
		            		<button icon="gtk-cancel" special="cancel" string="_Cancel"/>
		            		<button  icon="terp-mail-message-new" string="_Send" name="send" type="object"/>
		              </group>
			  	</form>
            </field>
		</record>

		<record id="action_project_task_close" model="ir.actions.act_window">
	           <field name="name">Send Email</field>
	           <field name="type">ir.actions.act_window</field>
	           <field name="res_model">project.task.close</field>
	           <field name="view_type">form</field>
	           <field name="view_mode">form</field>
	           <field name="view_id" ref="view_project_task_close"/>
	           <field name="target">new</field>
    	</record>

    </data>
</openerp>
