<?xml version="1.0"?>
<openerp>
	<data>

		<record model="ir.ui.view" id="view_invoice_line_form_inherit_1">
			<field name="name">account.invoice.line.form.inherit_1</field>
			<field name="model">account.invoice.line</field>
			<field name="inherit_id" ref="account.view_invoice_line_form"/>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<xpath expr="/form/notebook/page/field[@name='name']" position="before">
					<field name="state" select="1" on_change="_onchange_invoice_line_view(state)" />
					<field name="sequence"/>
				</xpath>
			</field>
		</record>

		<record model="ir.ui.view" id="view_invoice_line_tree_inherit_1">
			<field name="name">account.invoice.line.tree.inherit_1</field>
			<field name="model">account.invoice.line</field>
			<field name="inherit_id" ref="account.view_invoice_line_tree"/>
			<field name="type">tree</field>
			<field name="arch" type="xml">
				<xpath expr="/tree/field[@name='name']" position="before">
					<field name="sequence" string="Seq."/>
				</xpath>
			</field>
		</record>

		<record model="ir.ui.view" id="view_invoice_line_tree_inherit_2">
			<field name="name">account.invoice.line.tree.inherit_2</field>
			<field name="model">account.invoice.line</field>
			<field name="inherit_id" ref="view_invoice_line_tree_inherit_1"/>
			<field name="type">tree</field>
			<field name="arch" type="xml">
				<xpath expr="/tree/field[@name='account_id']" position="replace">
					<field name="functional_field"/>
				</xpath>
			</field>
		</record>

		<record model="ir.ui.view" id="account_invoice_form_inherit_1">
			<field name="name">account.invoice.form.inherit_1</field>
			<field name="model">account.invoice</field>
			<field name="inherit_id" ref="account.invoice_form"/>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<xpath expr="/form/notebook/page/field[@name='invoice_line']" position="replace">
					<field name="abstract_line_ids" colspan="4" nolabel="1"/>
				</xpath>
			</field>
		</record>

<!-- notification message views -->
	<record model="ir.ui.view" id="view_notify_message_tree">
		<field name="name">notify.message.tree</field>
		<field name="model">notify.message</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Messages">
				<field name="name"/>
				<field name="msg"/>
			</tree>
		</field>
	</record>
	<record model="ir.ui.view" id="view_notify_message_form">
		<field name="name">notify.message.form</field>
		<field name="model">notify.message</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Messages">
				<separator string="Write a notification or a wishful message." colspan="4"/>
				<field name="name" select="1" colspan="2" />
				<field name="msg" select="1" colspan="2"/>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="notify_mesage_tree_form">
		<field name="name">Write Messages</field>
		<field name="res_model">notify.message</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Notification Message" id="menu_finan_config_notify_message" parent="account.menu_finance_configuration"/>
	<menuitem name="All Notification Messages" id="menu_notify_mesage_tree_form" action="notify_mesage_tree_form" parent="menu_finan_config_notify_message"/>



	</data>
</openerp>
