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

	#---------------------------------------------------------
	# Fiscal Year
	#---------------------------------------------------------

	<menuitem name="Financial Management/Configuration" groups="admin" sequence="1"/>

	<record model="ir.ui.view" id="view_account_fiscalyear_form">
		<field name="name">account.fiscalyear.form</field>
		<field name="model">account.fiscalyear</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Fiscalyear">
				<field name="name" select="1"/>
				<field name="code" select="1"/>
				<field name="company_id" colspan="3" select="1"/>
				<field name="date_start"/>
				<field name="date_stop"/>
				<separator string="Periods" colspan="4"/>
				<field name="period_ids" colspan="3" widget="one2many_list"/>
				<separator string="States" colspan="4"/>
				<field name="state" select="1"/>
				<group col="2" colspan="2">
					<button name="create_period" string="Create Monthly Periods" type="object" states="draft"/>
					<button name="create_period3" string="Create 3 Months Periods" type="object" states="draft"/>
				</group>
			</form>
		</field>
	</record>
	<record model="ir.ui.view" id="view_account_fiscalyear_tree">
		<field name="name">account.fiscalyear.tree</field>
		<field name="model">account.fiscalyear</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Fiscalyear">
				<field name="code"/>
				<field name="name"/>
				<field name="state"/>
			</tree>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_account_fiscalyear_form">
		<field name="name">account.fiscalyear.form</field>
		<field name="res_model">account.fiscalyear</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Financial Management/Configuration/Periods/Fiscal Years" id="menu_action_account_fiscalyear_form" action="action_account_fiscalyear_form"/>

	#---------------------------------------------------------
	# Period
	#---------------------------------------------------------

	<record model="ir.ui.view" id="view_account_period_form">
		<field name="name">account.period.form</field>
		<field name="model">account.period</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Period">
				<field name="name" select="1"/>
				<field name="code" select="1"/>
				<field name="date_start"/>
				<field name="date_stop"/>
				<field name="fiscalyear_id"/>
				<separator string="States" colspan="4"/>
				<field name="state" select="1"/>
			</form>
		</field>
	</record>
	<record model="ir.ui.view" id="view_account_period_tree">
		<field name="name">account.period.tree</field>
		<field name="model">account.period</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Period">
				<field name="code"/>
				<field name="name"/>
				<field name="date_start"/>
				<field name="date_stop"/>
				<field name="state"/>
			</tree>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_account_period_form">
		<field name="name">account.period.form</field>
		<field name="res_model">account.period</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Financial Management/Configuration/Periods/Periods" id="menu_action_account_period_form" action="action_account_period_form"/>


	#---------------------------------------------------------
	# Accounts
	#---------------------------------------------------------

	<record model="ir.ui.view" id="view_account_form">
		<field name="name">account.account.form</field>
		<field name="model">account.account</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Account Form">
				<notebook>
				<page string="General Information">
					<field name="name" select="1"/>
					<field name="active" select="1" />
					<field name="type" select="1"/>
					<field name="code" select="1"/>
					<field name="shortcut"/>
					<field name="sign"/>

					<field name="currency_id" select="1"/>
					<field name="close_method"/>
					<field name="reconcile"/>
					<newline/>
					<field name="parent_id" colspan="3"/>
					<field name="tax_ids" colspan="3"/>
				</page><page string="Notes">
					<field name="note" colspan="4" nolabel="1"/>
				</page>
				</notebook>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_account_form">
		<field name="name">account.account.form</field>
		<field name="res_model">account.account</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Financial Management/Configuration/General Accounts/Accounts Definition" id="menu_action_account_form" action="action_account_form"/>

	<record model="ir.ui.view" id="view_account_tree">
		<field name="name">account.account.tree</field>
		<field name="model">account.account</field>
		<field name="type">tree</field>
		<field name="field_parent">child_id</field>
		<field name="arch" type="xml">
			<tree string="Account Chart">
				<field name="name"/>
				<field name="code"/>
				<field name="currency_id" string="CUR"/>
				<field name="debit"/>
				<field name="credit"/>
				<field name="balance"/>
			</tree>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_account_tree">
		<field name="name">account.account.tree</field>
		<field name="res_model">account.account</field>
		<field name="view_type">tree</field>
		<field name="view_id" ref="view_account_tree"/>
		<field name="domain">[('code','=','0')]</field>
	</record>
	<menuitem name="Financial Management/Configuration/General Accounts/Account Charts" id="menu_action_account_tree" action="action_account_tree"/>

	<record model="ir.ui.view" id="view_account_list">
		<field name="name">account.account.list</field>
		<field name="model">account.account</field>
		<field name="type">tree</field>
		<field name="field_parent">child_id</field>
		<field name="priority" eval="6"/>
		<field name="arch" type="xml">
			<tree string="Account Chart">
				<field name="code"/>
				<field name="name"/>
				<field name="currency_id"/>
			</tree>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_account_tree2">
		<field name="name">account.account.tree.fast</field>
		<field name="res_model">account.account</field>
		<field name="view_type">tree</field>
		<field name="view_id" ref="view_account_list"/>
		<field name="domain">[('code','=','0')]</field>
	</record>

	#---------------------------------------------------------
	# Journal
	#---------------------------------------------------------

	# Account Journal Columns

	<record model="ir.ui.view" id="view_journal_column_form">
		<field name="name">account.journal.column.form</field>
		<field name="model">account.journal.column</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Journal Column">
				<field name="name" select="1" colspan="3"/>
				<field name="field" select="1"/>
				<field name="sequence"/>
				<newline/>
				<field name="readonly"/>
				<field name="required"/>
			</form>
		</field>
	</record>
	<record model="ir.ui.view" id="view_journal_column_tree">
		<field name="name">account.journal.column.tree</field>
		<field name="model">account.journal.column</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Journal Column">
				<field name="sequence"/>
				<field name="name"/>
				<field name="required"/>
				<field name="readonly"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="view_account_journal_view_form">
		<field name="name">account.journal.view.form</field>
		<field name="model">account.journal.view</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Journal View">
				<field name="name" colspan="3" select="1"/>
				<field name="columns_id" colspan="3" widget="one2many_list"/>
			</form>
		</field>
	</record>

	# Account Journal

	<record model="ir.ui.view" id="view_account_journal_tree">
		<field name="name">account.journal.tree</field>
		<field name="model">account.journal</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Account Journal">
				<field name="code"/>
				<field name="name"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="view_account_journal_form">
		<field name="name">account.journal.form</field>
		<field name="model">account.journal</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Account Journal">
				<notebook>
				<page string="General Information">
					<field name="name" select="1"/>
					<field name="active" select="1" />
					<field name="code" select="1"/>
					<field name="type"/>
					<field name="view_id"/>
					<field name="sequence_id"/>
					<field name="default_debit_account_id"/>
					<field name="default_credit_account_id"/>
					<field name="user_id"/>
					<newline/>
					<field name="centralisation"/>
					<field name="update_posted"/>
				</page><page string="Entry Controls">
					<separator string="Accounts Type Allowed (empty for no control)" colspan="4"/>
					<field name="type_control_ids" colspan="4" nolabel="1"/>
				</page>
				</notebook>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_account_journal_form">
		<field name="name">account.journal.form</field>
		<field name="res_model">account.journal</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Financial Management/Configuration/Journal/Journal Definition" id="menu_action_account_journal_form" action="action_account_journal_form"/>

	#---------------------------------------------------------
	# Banks
	#---------------------------------------------------------
	<record model="ir.ui.view" id="view_bank_tree">
		<field name="name">account.bank.tree</field>
		<field name="model">account.bank</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Banks">
				<field name="code"/>
				<field name="name"/>
			</tree>
		</field>
	</record>
	<record model="ir.ui.view" id="view_bank_account_tree">
		<field name="name">account.bank.account.tree</field>
		<field name="model">account.bank.account</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Bank Account">
				<field name="code"/>
				<field name="name"/>
				<field name="currency_id"/>
			</tree>
		</field>
	</record>
	<record model="ir.ui.view" id="view_bank_form">
		<field name="name">account.bank.form</field>
		<field name="model">account.bank</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Bank">
				<notebook>
				<page string="General">
					<field name="name" select="1"/>
					<field name="code" select="1"/>
					<field name="partner_id" colspan="3"/>
					<newline/>
					<field name="bank_account_ids" colspan="3">
						<form string="Bank">
							<field name="name" colspan="3" select="1"/>
							<field name="code" select="1"/>
							<field name="currency_id"/>
							<field name="iban"/>
							<field name="swift"/>
							<field name="journal_id"/>
							<field name="account_id"/>
						</form>
					</field>
				</page><page string="Notes">
					<field name="note" colspan="4" nolabel="1"/>
				</page>
				</notebook>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_bank_form">
		<field name="name">account.bank</field>
		<field name="res_model">account.bank</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Financial Management/Configuration/Banks" id="menu_action_bank_form" action="action_bank_form"/>

	<record model="ir.ui.view" id="view_bank_account_form">
		<field name="name">account.bank.account.form</field>
		<field name="model">account.bank.account</field>
		<field name="type">form</field>
		<field name="priority" eval="8"/>
		<field name="arch" type="xml">
			<form string="Bank">
				<field name="name" colspan="3" select="1"/>
				<field name="bank_id" select="1"/>
				<field name="code" select="1"/>
				<field name="iban"/>
				<field name="swift"/>
				<field name="currency_id"/>
				<field name="journal_id"/>
				<field name="account_id"/>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_bank_account_form">
		<field name="name">account.bank.account</field>
		<field name="res_model">account.bank.account</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Financial Management/Configuration/Banks/Bank Accounts" id="menu_action_bank_account_form" action="action_bank_account_form"/>


	<record model="ir.ui.view" id="view_bank_statement_tree">
		<field name="name">account.bank.statement.tree</field>
		<field name="model">account.bank.statement</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Bank Statement" colors="red:balance_end_real!=balance_end;grey:balance_end_real==balance_end">
				<field name="date"/>
				<field name="name"/>
				<field name="journal_id"/>
				<field name="period_id"/>
				<field name="balance_start"/>
				<field name="balance_end_real"/>
				<field name="balance_end"/>
				<field name="state"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="view_bank_statement_form">
		<field name="name">account.bank.statement.form</field>
		<field name="model">account.bank.statement</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Bank Statement">
				<notebook>
				<page string="Statement">
					<field name="name" select="1"/>
					<field name="date" select="1"/>
					<field name="journal_id" select="1" on_change="onchange_journal_id(journal_id)"/>
					<field name="period_id" select="1"/>
					<field name="balance_start"/>
					<field name="balance_end_real"/>
					<separator string="Entry Lines" colspan="4"/>
					<field name="line_ids" colspan="4" nolabel="1">
						<tree string="Statement Lines" editable="bottom">
							<field name="date"/>
							<field name="name"/>
							<field name="type"/>
							<field name="partner_id" on_change="onchange_partner_id(partner_id,type)"/>
							<field name="account_id"/>
							<field name="amount"/>
						</tree>
					</field>
					<group col="7" colspan="4">
						<field name="state" select="1"/>
						<field name="balance_end" />
						<button name="button_dummy" string="Compute" states="draft"/>
						<button name="button_confirm" string="Confirm" states="draft" type="object"/>
						<button name="button_cancel" string="Cancel" states="confirm" type="object"/>
					</group>
				</page><page string="Entries">
					<field name="move_line_ids" colspan="4" nolabel="1"/>
				</page>
				</notebook>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_bank_statement_tree">
		<field name="name">account.bank.statement.tree</field>
		<field name="res_model">account.bank.statement</field>
		<field name="view_type">form</field>
		<field name="view_mode">form,tree</field>
	</record>
	<menuitem name="Financial Management/Entries/Bank statements" id="menu_bank_statement_tree" action="action_bank_statement_tree"/>

	#---------------------------------------------------------
	# Account Types
	#---------------------------------------------------------
	<record model="ir.ui.view" id="view_account_type_tree">
		<field name="name">account.account.type.tree</field>
		<field name="model">account.account.type</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Account Type">
				<field name="code"/>
				<field name="name"/>
				<field name="code_from"/>
				<field name="code_to"/>
			</tree>
		</field>
	</record>
	<record model="ir.ui.view" id="view_account_type_form">
		<field name="name">account.account.type.form</field>
		<field name="model">account.account.type</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Account Type">
				<field name="name" select="1"/>
				<field name="code" select="1"/>
				<field name="sequence"/>
				<field name="close_method"/>
				<field name="code_from" select="1"/>
				<field name="code_to" select="1"/>
				<field name="partner_account"/>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_account_type_form">
		<field name="name">account.account.type</field>
		<field name="res_model">account.account.type</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Financial Management/Configuration/General Accounts/Account types" id="menu_action_account_type_form" action="action_account_type_form"/>

	#---------------------------------------------------------
	# Entries
	#---------------------------------------------------------
	<record model="ir.ui.view" id="view_account_move_tree">
		<field name="name">account.move.tree</field>
		<field name="model">account.move</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Account entry">
				<field name="ref"/>
				<field name="name"/>
				<field name="state"/>
			</tree>
		</field>
	</record>

	#---------------------------------------------------------
	# Reconcile
	#---------------------------------------------------------

	<record model="ir.ui.view" id="view_move_reconcile_form">
		<field name="name">account.move.reconcile.form</field>
		<field name="model">account.move.reconcile</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Account Entry Reconcile">
				<field name="name" select="1"/>
				<field name="type" select="1"/>
				<field name="line_id" colspan="3"/>
			</form>
		</field>
	</record>

	#---------------------------------------------------------
	# Tax Codes
	#---------------------------------------------------------
	<record model="ir.ui.view" id="view_tax_code_tree">
		<field name="name">account.tax.code.tree</field>
		<field name="model">account.tax.code</field>
		<field name="type">tree</field>
		<field name="field_parent">child_ids</field>
		<field name="arch" type="xml">
			<tree string="Account Tax Code">
				<field name="name"/>
				<field name="code"/>
				<field name="sum"/>
				<field name="sum_period"/>
			</tree>
		</field>
	</record>
	<record model="ir.ui.view" id="view_tax_code_form">
		<field name="name">account.tax.code.form</field>
		<field name="model">account.tax.code</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Account Tax Code">
				<field name="name" select="1" colspan="3"/>
				<field name="code" select="1"/>
				<field name="parent_id" select="1"/>
				<newline/>
				<field name="sum"/>
				<field name="sum_period"/>
				<newline/>
				<field name="info" colspan="3"/>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_tax_code_list">
		<field name="name">account.tax.code.tree</field>
		<field name="res_model">account.tax.code</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="view_id" ref="view_tax_code_tree"/>
	</record>
	<record model="ir.actions.act_window" id="action_tax_code_tree">
		<field name="name">account.tax.code.tree</field>
		<field name="res_model">account.tax.code</field>
		<field name="domain">[('parent_id','=',False)]</field>
		<field name="view_type">tree</field>
		<field name="view_id" ref="view_tax_code_tree"/>
	</record>
	<menuitem name="Financial Management/Configuration/Taxes/Tax Codes" id="menu_action_tax_code_list" action="action_tax_code_list" sequence="12"/>
	<menuitem name="Financial Management/Periodical Processing/Taxes/Tax Code Structure" id="menu_action_tax_code_tree" action="action_tax_code_tree" sequence="12"/>


	#---------------------------------------------------------
	# Tax
	#---------------------------------------------------------
	<record model="ir.ui.view" id="view_tax_tree">
		<field name="name">account.tax.tree</field>
		<field name="model">account.tax</field>
		<field name="type">tree</field>
		<field name="field_parent">child_ids</field>
		<field name="arch" type="xml">
			<tree string="Account Tax">
				<field name="name"/>
				<field name="amount" select="1"/>
				<field name="type"/>
			</tree>
		</field>
	</record>
	<record model="ir.ui.view" id="view_tax_form">
		<field name="name">account.tax.form</field>
		<field name="model">account.tax</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Account Tax">
				<notebook>
				<page string="Tax Definition">
				<field name="name" select="1" colspan="3"/>
				<field name="tax_group" select="1"/>
				<field name="active" select="1" />
				<field name="type" select="1"/>
				<field name="applicable_type"/>
				<field name="amount" select="1"/>
				<field name="domain"/>
				<field name="account_collected_id"/>
					<label string="Keep empty to use the income account" nolabel="1" colspan="2"/>
				<field name="account_paid_id"/>
					<label string="Keep empty to use the expense account" nolabel="1" colspan="2"/>
				<field name="child_depend"/>
				<field name="sequence" />
				<newline/>
				<field name="child_ids" colspan="3"/>
				</page><page string="Tax Declaration">
					<separator colspan="4" string="Invoices"/>
					<field name="base_code_id"/>
					<field name="base_sign"/>
					<field name="tax_code_id"/>
					<field name="tax_sign"/>

					<separator colspan="4" string="Refund Invoices"/>
					<field name="ref_base_code_id"/>
					<field name="ref_base_sign"/>
					<field name="ref_tax_code_id"/>
					<field name="ref_tax_sign"/>
				</page><page string="Special Computation">
					<separator string="Compute Code (if type=code)" colspan="4"/>
					<field name="python_compute" colspan="4" nolabel="1"/>
					<separator string="Applicable Code (if type=code)" colspan="4"/>
					<field name="python_applicable" colspan="4" nolabel="1"/>
				</page>
				</notebook>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_tax_tree">
		<field name="name">account.tax.tree</field>
		<field name="res_model">account.tax</field>
		<field name="view_type">tree</field>
		<field name="domain">[('parent_id','=',False)]</field>
		<field name="view_id" ref="view_tax_tree"/>
	</record>
	<menuitem name="Financial Management/Configuration/Taxes" id="menu_action_tax_tree" action="action_tax_tree" sequence="12"/>

	<record model="ir.actions.act_window" id="action_tax_form">
		<field name="name">account.tax.form</field>
		<field name="res_model">account.tax</field>
		<field name="view_type">form</field>
		<field name="view_id" ref="view_tax_form"/>
	</record>
	<menuitem name="Financial Management/Configuration/Taxes/Edit Taxes" id="menu_action_tax_form" action="action_tax_form"/>


	<menuitem name="Financial Management/Entries" sequence="2"/>


	#---------------------------------------------------------
	# Entries Journal lines
	#---------------------------------------------------------

	<wizard
		string="Standard entry"
		menu="False"
		model="account.move.line"
		name="account.move.journal.select"
		id="action_move_journal_line_form_select" />

	<record model="ir.values" id="ir_open_journal_period">
		<field name="key2">tree_but_open</field>
		<field name="model">account.journal.period</field>
		<field name="name">Open Journal</field>
		<field name="value" eval="'ir.actions.wizard,%d'%action_move_journal_line_form_select"/>
		<field name="object" eval="True"/>
	</record>

	<wizard
		string="Standard entry"
		model="account.move.line"
		name="account.move.journal"
		menu="False"
		id="action_move_journal_line_form" />
	<menuitem name="Financial Management/Entries/Standard entry" id="menu_action_move_journal_line_form" action="action_move_journal_line_form" type="wizard"/>

	<record model="ir.actions.act_window" id="action_move_journal_period_line_form">
		<field name="name">account.journal.period.tree</field>
		<field name="res_model">account.journal.period</field>
		<field name="view_type">tree</field>
		<field name="domain">[('state','&lt;&gt;','done')]</field>
	</record>
	<menuitem name="Financial Management/Entries/Standard entry/Open journals" id="menu_action_move_journal_period_line_form" action="action_move_journal_period_line_form"/>


	#---------------------------------------------------------
	# Entries lines
	#---------------------------------------------------------

	<record model="ir.ui.view" id="view_move_line_tree">
		<field name="name">account.move.line.tree</field>
		<field name="model">account.move.line</field>
		<field name="type">tree</field>
		<field name="priority" eval="4"/>
		<field name="arch" type="xml">
			<tree string="Account Entry Line">
				<field name="date"/>
				<field name="move_id"/>
				<field name="statement_id" string="St."/>
				<field name="name"/>
				<field name="partner_id"/>
				<field name="account_id"/>
				<field name="date_maturity"/>
				<field name="debit"/>
				<field name="credit"/>
				<field name="state"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="view_move_line_form">
		<field name="name">account.move.line.form</field>
		<field name="model">account.move.line</field>
		<field name="type">form</field>
		<field name="priority" eval="2"/>
		<field name="arch" type="xml">
			<form string="Account Entry Line">
				<notebook>
				<page string="Information">
				<separator string="General Information" colspan="4"/>
				<field name="name" select="1"/>
				<field name="date" select="1"/>
				<field name="account_id" select="1"/>
				<field name="partner_id" select="1"/>

				<field name="debit" select="1"/>
				<field name="credit" select="1"/>

				<separator string="Optional Information" colspan="4"/>
				<field name="currency_id"/>
				<field name="amount_currency"/>
				<field name="quantity" select="1"/>
				<field name="move_id" required="False"/>
				<newline/>
				<field name="statement_id" select="1"/>
				<field name="blocked" select="1"/>
				<field name="date_maturity"/>
				<field name="date_created"/>

				<separator string="State" colspan="4"/>
				<field name="journal_id"/>
				<field name="period_id"/>
				<field name="reconcile_id"/>
				<field name="active" select="1"/>
				<field name="state"/>
				</page><page string="Analytic Lines">
					<field name="analytic_lines" colspan="4" nolabel="1"/>
				</page>
				</notebook>
			</form>
		</field>
	</record>


	<record model="ir.ui.view" id="view_move_line_form2">
		<field name="name">account.move.line.form2</field>
		<field name="model">account.move.line</field>
		<field name="type">form</field>
		<field name="priority" eval="9"/>
		<field name="arch" type="xml">
			<form string="Account Entry Line">
				<notebook>
				<page string="Information">
				<separator string="General Information" colspan="4"/>
				<field name="name" select="1"/>
				<field name="date" select="1"/>
				<field name="journal_id" select="1" readonly="False"/>
				<field name="period_id" select="1" readonly="False"/>
				<field name="account_id" select="1"/>
				<field name="partner_id" select="1"/>
				<newline/>
				<field name="debit" select="1"/>
				<field name="credit" select="1"/>

				<separator string="Optional Information" colspan="4"/>
				<field name="currency_id"/>
				<field name="amount_currency"/>
				<field name="quantity" select="1"/>
				<field name="move_id" required="False"/>
				<newline/>
				<field name="date_maturity"/>
				<field name="date_created"/>
				<field name="date_created"/>
				<field name="blocked" select="1"/>


				<separator string="State" colspan="4"/>
				<field name="state" select="1"/>
				<field name="reconcile_id"/>
				</page><page string="Analytic Lines">
					<field name="analytic_lines" colspan="4" nolabel="1"/>
				</page>
				</notebook>
			</form>
		</field>
	</record>

	# --------------------------------------------------------
	# Account.Entry Edition
	# --------------------------------------------------------

	<record model="ir.ui.view" id="view_move_tree">
		<field name="name">account.move.tree</field>
		<field name="model">account.move</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Account Entry">
				<field name="ref"/>
				<field name="name"/>
				<field name="period_id"/>
				<field name="journal_id"/>

				<field name="line_id"/>
				<field name="state"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="view_move_form">
		<field name="name">account.move.form</field>
		<field name="model">account.move</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Account Entry">
				<separator string="General Information" colspan="4"/>
				<field name="name" select="1"/>
				<field name="ref" select="1"/>
				<field name="period_id" select="1"/>
				<field name="journal_id" select="1"/>

				<separator string="Entry Lines" colspan="4"/>
				<field name="line_id" colspan="3" widget="one2many_list" readonly="1">
					<form string="Account Entry Line">
						<separator string="General Information" colspan="4"/>
						<field name="name" select="1"/>
						<field name="date"/>
						<field name="account_id"/>
						<field name="partner_id"/>

						<field name="debit" select="1"/>
						<field name="credit" select="1"/>

						<separator string="Optional Information" colspan="4"/>
						<field name="currency_id"/>
						<field name="amount_currency"/>
						<field name="quantity" select="1"/>
						<newline/>
						<field name="date_maturity"/>
						<field name="date_created"/>

						<separator string="State" colspan="4"/>
						<field name="reconcile_id"/>
						<field name="statement_id"/>
						<field name="state"/>
					</form>
					<tree string="Account Entry Line" editable="top">
						<field name="date"/>
						<field name="name"/>
						<field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit)"/>
						<field name="account_id"/>
						<field name="date_maturity"/>
						<field name="ref"/>
						<field name="debit"/>
						<field name="credit"/>
						<field name="state"/>
					</tree>
				</field>

				<separator string="States" colspan="4"/>
				<field name="state" select="1"/>
				<group col="2" colspan="2">
					<button string="Validate" name="button_validate" states="draft" type="object"/>
					<button string="Cancel" name="button_cancel" states="posted" type="object"/>
				</group>
			</form>
		</field>
	</record>

	<record model="ir.actions.act_window" id="action_move_line_form">
		<field name="name">account.move.form</field>
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">account.move</field>
		<field name="view_type">form</field>
		<field name="view_id" ref="view_move_form"/>
	</record>
	<menuitem name="Financial Management/Entries/Entry lookup/Voucher entry" id="menu_action_move_line_form" action="action_move_line_form"/>

	<record model="ir.actions.act_window" id="action_move_line_search">
		<field name="name">account.move.line.form</field>
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">account.move.line</field>
		<field name="view_type">form</field>
		<field name="view_id" ref="view_move_line_form"/>
	</record>
	<menuitem name="Financial Management/Entries/Entry lookup/Entry lines" id="menu_action_move_line_search" action="action_move_line_search"/>

	<menuitem name="Financial Management/Charts" sequence="7"/>
	<menuitem name="Financial Management/Charts/Accounts Charts" id="menu_action_account_tree2" action="action_account_tree"/>
	<menuitem name="Financial Management/Charts/Accounts Charts/Fast Account Chart" id="menu_action_account_tree3" action="action_account_tree2"/>

	<menuitem name="Financial Management/Periodical Processing" sequence="3"/>

	# Wizard, Period
	<record model="ir.actions.act_window" id="action_account_bank_tree">
		<field name="name">account.bank.tree</field>
		<field name="res_model">account.bank</field>
		<field name="view_type">tree</field>
		<field name="view_id" ref="view_bank_tree"/>
	</record>

	<wizard
		string="Bank reconciliation"
		model="account.move.line"
		name="account.move.bank.reconcile"
		menu="False"
		id="action_account_bank_reconcile_tree" />
	<menuitem name="Financial Management/Periodical Processing/Bank reconciliation" id="menu_action_account_bank_reconcile_tree" action="action_account_bank_reconcile_tree" type="wizard"/>


	<menuitem name="Financial Management/Reporting" sequence="8"/>

<!--
	TODO:
		Print Journal (and change state)
		Close Journal (and verify that there is no draft move lines)
-->

	<record model="ir.ui.view" id="view_journal_period_tree">
		<field name="name">account.journal.period.tree</field>
		<field name="model">account.journal.period</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Journals">
				<field name="period_id" icon="icon"/>
				<field name="journal_id"/>
				<field name="state"/>
			</tree>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_account_journal_period_tree">
		<field name="name">account.journal.period.tree</field>
		<field name="res_model">account.journal.period</field>
		<field name="view_type">tree</field>
	</record>
	<menuitem name="Financial Management/Reporting/Print journals" id="menu_action_account_journal_period_tree" action="action_account_journal_period_tree"/> 

	<record model="ir.actions.act_window" id="action_account_budget_post_tree">
		<field name="name">account.budget.post.tree</field>
		<field name="res_model">account.budget.post</field>
		<field name="view_type">tree</field>
	</record>
	<menuitem name="Financial Management/Reporting/Print budgets" id="menu_action_account_budget_post_tree" action="action_account_budget_post_tree"/> 

	<!--
	Budgets
	-->
	<record model="ir.ui.view" id="view_budget_post_form">
		<field name="name">account.budget.post.form</field>
		<field name="model">account.budget.post</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Budget item">
				<notebook>
					<page string="Definition">
						<field name="code" select="1"/>
						<field name="name" select="1"/>
						<field name="sens"/>
					</page><page string="Dotations">
						<button string="Spread" name="%(wizard_budget_spread)d" type="action"/>
						<field name="dotation_ids" colspan="4" nolabel="1"/>
					</page><page string="Accounts">
						<field name="account_ids" colspan="4" nolabel="1"/>
					</page>
				</notebook>
			</form>
		</field>
	</record>
	<record model="ir.ui.view" id="view_budget_post_tree">
		<field name="name">account.budget.post.tree</field>
		<field name="model">account.budget.post</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Budget item">
				<field name="code"/>
				<field name="name"/>
			</tree>
		</field>
	</record>
	<record model="ir.ui.view" id="view_budget_post_dotation_form">
		<field name="name">account.budget.post.dotation.form</field>
		<field name="model">account.budget.post.dotation</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Budget items expenses">
				<field name="period_id"/>
				<newline/>
				<field name="quantity"/>
				<field name="amount"/>
			</form>
		</field>
	</record>
	<record model="ir.ui.view" id="view_budget_post_dotation_tree">
		<field name="name">account.budget.post.dotation.tree</field>
		<field name="model">account.budget.post.dotation</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Budget items expenses">
				<field name="period_id"/>
				<field name="quantity"/>
				<field name="amount"/>
			</tree>
		</field>
	</record>
	
	<record model="ir.actions.act_window" id="open_budget_post_form">
		<field name="name">account.budget.post.form</field>
		<field name="res_model">account.budget.post</field>
		<field name="view_type">form</field>
		<field name="view_id" ref="view_budget_post_form"/>
	</record>
	<menuitem name="Financial Management/Configuration/Budgets/Budget items" id="menu_budget_post_form" action="open_budget_post_form"/>


<!--
	# Account Models
-->

	<record model="ir.ui.view" id="view_model_line_tree">
		<field name="name">account.model.line.tree</field>
		<field name="model">account.model.line</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Entry Model Line">
				<field name="sequence"/>
				<field name="ref"/>
				<field name="name"/>
				<field name="account_id"/>
				<field name="partner_id"/>
				<field name="debit"/>
				<field name="credit"/>
			</tree>
		</field>
	</record>


	<record model="ir.ui.view" id="view_model_line_form">
		<field name="name">account.model.line.form</field>
		<field name="model">account.model.line</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Entry Model Line">
				<field name="name" select="1" colspan="3"/>
				<field name="sequence"/>
				<field name="ref" select="1"/>
				<field name="account_id"/>
				<field name="partner_id"/>
				<field name="debit" select="1"/>
				<field name="credit" select="1"/>
				<field name="quantity"/>
				<newline/>
				<field name="date"/>
				<field name="date_maturity"/>
			</form>
		</field>
	</record>

	<record model="ir.ui.view" id="view_model_form">
		<field name="name">account.model.form</field>
		<field name="model">account.model</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Entry Model">
				<field name="name" select="1"/>
				<field name="ref" select="1"/>
				<field name="journal_id" select="1"/>
				<field name="lines_id" colspan="3" widget="one2many_list"/>
				<group col="1" colspan="4">
					<button name="generate" string="Generate Entries" type="object"/>
				</group>
			</form>
		</field>
	</record>
	<record model="ir.ui.view" id="view_model_tree">
		<field name="name">account.model.tree</field>
		<field name="model">account.model</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Entry Model">
				<field name="name"/>
				<field name="journal_id"/>
			</tree>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_model_form">
		<field name="name">account.model.form</field>
		<field name="res_model">account.model</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Financial Management/Configuration/Models/Models Definition" id="menu_action_model_form" action="action_model_form"/>

<!--
	# Payment Terms
-->

	<record model="ir.ui.view" id="view_payment_term_line_tree">
		<field name="name">account.payment.term.line.tree</field>
		<field name="model">account.payment.term.line</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Payment Term">
				<field name="sequence"/>
				<field name="name"/>
				<field name="value"/>
				<field name="days"/>
				<field name="condition"/>
			</tree>
		</field>
	</record>


	<record model="ir.ui.view" id="view_payment_term_line_form">
		<field name="name">account.payment.term.line.form</field>
		<field name="model">account.payment.term.line</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Payment Term">
				<field name="name" select="1"/>
				<field name="sequence"/>
				<field name="value"/>
				<field name="value_amount"/>
				<newline/>
				<field name="days"/>
				<field name="condition"/>
			</form>
		</field>
	</record>

	<record model="ir.ui.view" id="view_payment_term_form">
		<field name="name">account.payment.term.form</field>
		<field name="model">account.payment.term</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Payment Term">
				<separator string="Information" colspan="4"/>
				<field name="name" select="1"/>
				<field name="active" select="1"/>
				<separator string="Description on invoices" colspan="4"/>
				<field name="note" colspan="3"/>
				<separator string="Computation" colspan="4"/>
				<field name="line_ids" colspan="3"/>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_payment_term_form">
		<field name="name">account.payment.term.form</field>
		<field name="res_model">account.payment.term</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Financial Management/Configuration/Payment Terms/Payment Terms" id="menu_action_payment_term_form" action="action_payment_term_form"/>

<!--
	# Account Subscriptions
-->

	<record model="ir.ui.view" id="view_subscription_line_form">
		<field name="name">account.subscription.line.form</field>
		<field name="model">account.subscription.line</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Subscription lines">
				<field name="date"/>
				<field name="move_id"/>
			</form>
		</field>
	</record>

	<record model="ir.ui.view" id="view_subscription_line_tree">
		<field name="name">account.subscription.line.tree</field>
		<field name="model">account.subscription.line</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Subscription lines">
				<field name="date"/>
				<field name="move_id"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="view_subscription_tree">
		<field name="name">account.subscription.tree</field>
		<field name="model">account.subscription</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Entry Subscription">
				<field name="ref"/>
				<field name="name"/>
				<field name="date_start"/>
				<field name="state"/>
			</tree>
		</field>
	</record>
	<record model="ir.ui.view" id="view_subscription_form">
		<field name="name">account.subscription.form</field>
		<field name="model">account.subscription</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Entry Subscription">
				<field name="name" select="1"/>
				<field name="ref" select="1"/>

				<separator string="Subscription Periods" colspan="4"/>
				<field name="date_start" select="1"/>
				<field name="period_total" select="1"/>

				<field name="period_nbr"/>
				<field name="period_type"/>
				<field name="model_id"/>
				<group col="2" colspan="2">
					<button string="Compute" name="compute" type="object" states="draft,running"/>
					<button string="Remove Lines" name="remove_line" type="object" states="running"/>
				</group>
				<separator string="Subscription Lines" colspan="4"/>
				<field name="lines_id" colspan="3" widget="one2many_list"/>

				<separator string="State" colspan="4"/>
				<field name="state" select="1"/>
				<group col="1" colspan="2">
					<button string="Set to Draft" name="state_draft" type="object" states="done"/>
				</group>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_subscription_form">
		<field name="name">account.subscription.form</field>
		<field name="res_model">account.subscription</field>
		<field name="view_type">form</field>
		<field name="view_id" ref="view_subscription_form"/>
	</record>
	<menuitem name="Financial Management/Entries/Subscription entries" id="menu_action_subscription_form" action="action_subscription_form"/>

	<record model="ir.actions.act_window" id="action_subscription_form_running">
		<field name="name">account.subscription.form</field>
		<field name="res_model">account.subscription</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="domain">[('state','=','running')]</field>
	</record>
	<menuitem name="Financial Management/Entries/Subscription entries/Running subscriptions" id="menu_action_subscription_form_running" action="action_subscription_form_running"/>

	<record model="ir.ui.view" id="view_subscription_line_form_complete">
		<field name="name">account.subscription.line.form</field>
		<field name="model">account.subscription.line</field>
		<field name="type">form</field>
		<field name="priority" eval="20"/>
		<field name="arch" type="xml">
			<form string="Subscription lines">
				<field name="subscription_id"/>
				<field name="date"/>
				<field name="move_id"/>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_subscription_line_form_running">
		<field name="name">account.subscription.line.list</field>
		<field name="res_model">account.subscription.line</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="domain">[('move_id','=',False)]</field>
	</record>
	<menuitem name="Financial Management/Entries/Subscription entries/Next entries" id="menu_action_subscription_line_form_running" action="action_subscription_line_form_running"/>


	<record model="ir.actions.act_window" id="action_move_line_tree1">
		<field name="name">account.move.line.tree1</field>
		<field name="res_model">account.move.line</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="domain">[('account_id','=',active_id),('state','&lt;&gt;','draft')]</field>
	</record>
	<record model="ir.values" id="ir_open_account_account">
		<field name="key2" eval="'tree_but_open'"/>
		<field name="model" eval="'account.account'"/>
		<field name="name">Open all entries lines</field>
		<field name="value" eval="'ir.actions.act_window,%d'%action_move_line_tree1"/>
		<field name="object" eval="True"/>
	</record>


	<record model="ir.ui.view" id="view_move_line_tax_tree">
		<field name="name">account.move.line.tax.tree</field>
		<field name="model">account.move.line</field>
		<field name="type">tree</field>
		<field name="priority" eval="4"/>
		<field name="arch" type="xml">
			<tree string="Account Entry Line">
				<field name="date"/>
				<field name="move_id"/>
				<field name="statement_id" string="St."/>
				<field name="name"/>
				<field name="partner_id"/>
				<field name="account_id"/>
				<field name="tax_code_id"/>
				<field name="tax_amount"/>
				<field name="debit"/>
				<field name="credit"/>
				<field name="state"/>
			</tree>
		</field>
	</record>

	<record model="ir.actions.act_window" id="action_tax_code_line_open">
		<field name="name">account.move.line.tax.code</field>
		<field name="res_model">account.move.line</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="view_id" ref="view_move_line_tax_tree"/>
		<field name="domain">[('tax_code_id','=',active_id),('state','&lt;&gt;','draft')]</field>
	</record>
	<record model="ir.values" id="ir_open_tax_move_line">
		<field name="key2">tree_but_open</field>
		<field name="model">account.tax.code</field>
		<field name="name">Tax Details</field>
		<field name="value" eval="'ir.actions.act_window,%d'%action_tax_code_line_open"/>
		<field name="object" eval="True"/>
	</record>


	# Admin config

	<menuitem name="Administration/Configuration/Account" sequence="2"/>

	<record model="ir.actions.act_window" id="open_module_tree_accounting">
		<field name="name">ir.module.module</field>
		<field name="res_model">ir.module.module</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="domain">[('category_id','=','Account charts')]</field>
	</record>

	<menuitem name="Administration/Configuration/Account/Choose Account charts" action="open_module_tree_accounting" sequence="1" id="menu_accounting_modules"/>

	<record model="ir.actions.act_window" id="open_module_tree_tva">
		<field name="name">ir.module.module</field>
		<field name="res_model">ir.module.module</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="domain">[('category_id','=','VAT')]</field>
	</record>
	<menuitem name="Administration/Configuration/Account/Choose VAT mode" action="open_module_tree_tva" sequence="2" id="menu_tva_def"/>


	<record model="ir.actions.wizard" id="account_wizard_upgrade">
		<field name="name">Set Account charts</field>
		<field name="wiz_name">module.upgrade</field>
	</record>
	<menuitem name="Administration/Configuration/Account/Apply Account charts and VAT mode" action="account_wizard_upgrade" sequence="3" type="wizard" id="menu_install_module"/>

	<record model="ir.actions.act_window" id="open_module_plan_ctbl">
		<field name="name">account.account</field>
		<field name="res_model">account.account</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Administration/Configuration/Account/Modify Account charts" action="open_module_plan_ctbl" sequence="4" id="menu_plan_ctbl"/>

	<record model="ir.actions.act_window" id="open_module_fiscal">
		<field name="name">account.fiscalyear</field>
		<field name="res_model">account.fiscalyear</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Administration/Configuration/Account/Set Fiscal year" action="open_module_fiscal" sequence="5" id="menu_fiscal_def"/>

	<record model="ir.actions.act_window" id="open_module_journal">
		<field name="name">account.journal</field>
		<field name="res_model">account.journal</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="Administration/Configuration/Account/Add Account journal" action="open_module_journal" sequence="6" id="menu_journal_def"/>

</data>
</terp>
