<?xml version="1.0"?>
<terp>
	<data>
		<record model="ir.ui.view" id="view_partner_form">
			<field name="name">res.partner.form.inherit</field>
			<field name="model">res.partner</field>
			<field name="type">form</field>
			<field name="inherit_id" ref="base.view_partner_form"/>
			<field name="arch" type="xml">
				<field name="lang" position="after">
					<field name="rebate"/>
				</field>
			</field>
		</record>

		<!-- sale order -->
		<record model="ir.ui.view" id="view_order_form1">
			<field name="name">sale.order.form</field>
			<field name="model">sale.order</field>
			<field name="type">form</field>
			<field name="inherit_id" ref="sale.view_order_form"/>
			<field name="arch" type="xml">
				<field name="project_id" position="after">
					<field name="rebate_percent"/>
<!--					
					<field name="rebate_account"/>
-->					
				</field>
			</field>
		</record>

		<record model="ir.ui.view" id="view_order_form2">
			<field name="name">sale.order.form</field>
			<field name="model">sale.order</field>
			<field name="type">form</field>
			<field name="inherit_id" ref="sale.view_order_form"/>
			<field name="arch" type="xml">
				<group colspan="4" col="7" position="before">
					<field name="amount_wo_rebate"/>
					<field name="amount_rebate"/>
				</group>
			</field>
		</record>

		<!-- invoice -->
		<record model="ir.ui.view" id="view_invoice_form1">
			<field name="name">account.invoice.form</field>
			<field name="model">account.invoice</field>
			<field name="type">form</field>
			<field name="inherit_id" ref="account.invoice_form"/>
			<field name="arch" type="xml">
				<field name="project_id" position="after">
					<field name="rebate_percent"/>
				</field>
			</field>
		</record>

		<record model="ir.ui.view" id="view_invoice_form2">
			<field name="name">account.invoice.form</field>
			<field name="model">account.invoice</field>
			<field name="type">form</field>
			<field name="inherit_id" ref="account.invoice_form"/>
			<field name="arch" type="xml">
				<group colspan="4" col="7" position="before">
					<field name="amount_wo_rebate"/>
					<field name="rebate_amount"/>
				</group>
			</field>
		</record>
	</data>
</terp>

