<?xml version="1.0" encoding="utf-8"?>
	<openerp>
		<data>
			<record id="view_task_mailgate_form" model="ir.ui.view">
		            <field name="name">task.mailgate.form</field>
		            <field name="model">project.task</field>
		            <field name="type">form</field>
		            <field name="inherit_id" ref="project.view_task_form2"/>
		            <field name="arch" type="xml">
		                <xpath expr="/form/notebook/page[@string='Extra Info']" position="before">
		                    <page string="History">
	                        	<field name="message_ids" colspan="4" nolabel="1" mode="tree,form">
			                        <tree string="History">
			                            <field name="display_text" string="History Information"/>
			                        </tree>
			                        <form string="History">
			                            <group col="4" colspan="4">
			                                <field name="email_from"/>
			                                <field name="date"/>
			                                <field name="email_to" widget="char" size="512"/>
			                                <field name="email_cc" widget="char" size="512"/>
			                                <field name="name" colspan="4" widget="char" size="512"/>
			                                <field name="history" invisible="1"/>
			                            </group>
			                            <notebook colspan="4">
			                                <page string="Details">
			                                    <group attrs="{'invisible': [('history', '!=', True)]}">
			                                        <field name="description" colspan="4" nolabel="1" height="250"/>
			                                    </group>
			                                    <group attrs="{'invisible': [('history', '=', True)]}">
			                                        <field name="display_text" colspan="4" nolabel="1"  height="250"/>
			                                    </group>
			                                </page>
			                                <page string="Attachments">
			                                    <field name="attachment_ids" colspan="4" readonly="1" nolabel="1"/>
			                                </page>
			                            </notebook>
			                        </form>
	                    		</field>
	                        </page>
		                </xpath>
		            </field>
		       </record>
	 	</data>
</openerp> 