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

	#---------------------------------------------------------
	# Transfers
	#---------------------------------------------------------
	<record model="ir.ui.view" id="view_transfer_tree">
		<field name="name">account.transfer.tree</field>
		<field name="model">account.transfer</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Transfers">
				<field name="date"/>
				<field name="name" select="1"/>
				<field name="type"/>
				<field name="amount"/>
				<field name="account_src_id"/>
				<field name="account_dest_id"/>
				<field name="state"/>
				<field name="partner_id" select="1"/>
				<field name="project_id" select="1"/>
			</tree>
		</field>
	</record>
	<record model="ir.ui.view" id="view_transfer_form">
		<field name="name">account.transfer.form</field>
		<field name="model">account.transfer</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Transfers">
				<field name="name" select="1"/>
				<field name="reference" select="1"/>
				<field name="journal_id" select="1"/>
				<field name="period_id" select="1"/>
				<field name="type" on_change="onchange_type(type)"/>
				<field name="partner_id" select="1" on_change="onchange_partner(type,partner_id)"/>
				<field name="date" select="1"/>
				<field name="project_id"/>
				<field name="amount" select="1"/>
				<field name="change" select="1"/>
				<newline/>
				<field name="account_src_id" select="1" on_change="onchange_account(type,account_src_id,account_dest_id)"/>
				<field name="account_dest_id" select="1"/>
				<newline/>
				<field name="state" select="1"/>
				<group colspan="2">
					<button name="pay_validate" states="draft" string="Confirm Payment" type="object"/>
					<button name="pay_cancel" states="posted" string="Cancel Payment" type="object"/>
				</group>
				<separator string="Related Invoices" colspan="4"/>
				<field name="invoice_id" colspan="4" domain="[('partner_id','=',partner_id),('state','=','open')]"/>
				<separator string="Adjustement and corrections" colspan="4"/>
				<field name="adjust_amount"/>
				<field name="adjust_account_id"/>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_transfer_form">
		<field name="name">account.transfer.form</field>
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">account.transfer</field>
		<field name="view_type">form</field>
		<field name="view_id" ref="view_transfer_form"/>
	</record>
	<!--
	<menuitem name="Financial Management/Entries/Cash Book Transfers" action="action_transfer_form" sequence="15"/>
	-->

</data>
</terp>
