<?xml version="1.0" encoding="utf-8"?>
<terp>
    <data>

        <!--
	 Fiscal Year
	-->

        <menuitem id="base.menu_action_currency_form" parent="menu_finance_configuration" sequence="20"/>

        <record id="view_account_fiscalyear_form" model="ir.ui.view">
            <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="date_start"/>
                    <field name="date_stop"/>
                    <field name="start_journal_period_id"/>
                    <field name="end_journal_period_id"/>
                    <separator colspan="4" string="Periods"/>
                    <field colspan="4" name="period_ids" nolabel="1" widget="one2many_list">
                        <form string="Period">
                            <field name="name" select="1"/>
                            <field name="code" select="1"/>
                            <field name="date_start"/>
                            <field name="date_stop"/>
                        </form>
                    </field>
                    <separator colspan="4" string="States"/>
                    <field name="state" select="1"/>
                    <group col="2" colspan="2">
                        <button name="create_period" states="draft" string="Create Monthly Periods" type="object"/>
                        <button name="create_period3" states="draft" string="Create 3 Months Periods" type="object"/>
                    </group>
                </form>
            </field>
        </record>
        <record id="view_account_fiscalyear_tree" model="ir.ui.view">
            <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 id="action_account_fiscalyear_form" model="ir.actions.act_window">
            <field name="name">Fiscal Years</field>
            <field name="res_model">account.fiscalyear</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>
        <menuitem id="next_id_23" name="Periods" parent="account.menu_finance_configuration"/><menuitem action="action_account_fiscalyear_form" id="menu_action_account_fiscalyear_form" parent="next_id_23"/>

        <!--
	Period
	-->

        <record id="view_account_period_form" model="ir.ui.view">
            <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 colspan="4" string="States"/>
                    <field name="state" select="1"/>
                </form>
            </field>
        </record>
        <record id="view_account_period_tree" model="ir.ui.view">
            <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 id="action_account_period_form" model="ir.actions.act_window">
            <field name="name">Periods</field>
            <field name="res_model">account.period</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>
        <menuitem action="action_account_period_form" id="menu_action_account_period_form" parent="account.next_id_23"/>


        <!--
	Accounts
	-->

        <record id="view_account_form" model="ir.ui.view">
            <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">
                    <notebook>
                        <page string="General Information">
                            <field colspan="4" name="name" select="1"/>
                            <field name="company_id" select="2"/>
                            <field name="active"/>
                            <newline/>
                            <field name="type" select="1"/>
                            <field name="code" select="1"/>
                            <field name="shortcut"/>
                            <field name="sign"/>

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

        <record id="view_account_tree" model="ir.ui.view">
            <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="Chart of accounts">
                    <field name="name"/>
                    <field name="code"/>
                    <field name="debit"/>
                    <field name="credit"/>
                    <field name="balance"/>
                    <field name="company_currency_id"/>
                </tree>
            </field>
        </record>
        <record id="action_account_tree" model="ir.actions.act_window">
            <field name="name">Chart of Accounts</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 action="action_account_tree" id="menu_action_account_tree" parent="account.account_account_menu"/>

        <record id="view_account_list" model="ir.ui.view">
            <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 eval="6" name="priority"/>
            <field name="arch" type="xml">
                <tree string="Chart of Accounts">
                    <field name="code"/>
                    <field name="name"/>
                </tree>
            </field>
        </record>
        <record id="action_account_tree2" model="ir.actions.act_window">
            <field name="name">Fast Chart of Accounts</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 id="view_journal_column_form" model="ir.ui.view">
            <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 colspan="4" name="name" select="1"/>
                    <field name="field" select="1"/>
                    <field name="sequence"/>
                    <newline/>
                    <field name="readonly"/>
                    <field name="required"/>
                </form>
            </field>
        </record>
        <record id="view_journal_column_tree" model="ir.ui.view">
            <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 id="view_account_journal_view_form" model="ir.ui.view">
            <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 colspan="4" name="name" select="1"/>
                    <field colspan="4" name="columns_id" widget="one2many_list"/>
                </form>
            </field>
        </record>

        <!--
	# Account Journal
	-->

        <record id="view_account_journal_tree" model="ir.ui.view">
            <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 id="view_account_journal_form" model="ir.ui.view">
            <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="currency"/>
                            <field name="user_id" groups="base.group_extended"/>
                            <newline/>
                            <field name="centralisation"/>
                            <field name="update_posted"/>
                        </page>
                        <page string="Entry Controls">
                            <separator colspan="4" string="Accounts Type Allowed (empty for no control)"/>
                            <field colspan="4" name="type_control_ids" nolabel="1"/>
                            <separator colspan="4" string="Accounts Allowed (empty for no control)"/>
                            <field colspan="4" name="account_control_ids" nolabel="1"/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>
        <record id="action_account_journal_form" model="ir.actions.act_window">
            <field name="name">Financial Journals</field>
            <field name="res_model">account.journal</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>
        <menuitem id="next_id_25" name="Journal" parent="account.menu_finance_configuration"/>
		<menuitem action="action_account_journal_form" id="menu_action_account_journal_form" parent="next_id_25"/>

        <record id="view_bank_statement_tree" model="ir.ui.view">
            <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 colors="red:balance_end_real!=balance_end;blue:state=='draft' and (balance_end_real==balance_end)" string="Statement">
                    <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 id="view_bank_statement_form" model="ir.ui.view">
            <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="Statement">
                    <field name="name" select="1"/>
                    <field name="date" select="1"/>
                    <field name="journal_id" on_change="onchange_journal_id(journal_id)" select="1"/>
                    <field name="currency"/>
                    <field name="period_id" select="2"/>
                    <newline/>
                    <field name="balance_start"/>
                    <field name="balance_end_real"/>
                    <notebook colspan="4">
                        <page string="Entry encoding">
                            <field colspan="4" name="line_ids" nolabel="1">
                                <tree colors="red:amount!=reconcile_amount and reconcile_id" editable="bottom" string="Statement lines">
                                    <field name="date"/>
                                    <field name="ref"/>
                                    <field name="name"/>
                                    <field name="type"/>
                                    <field name="partner_id" on_change="onchange_partner_id(partner_id, type, parent.currency)"/>
                                    <field domain="[('journal_id','=',parent.journal_id)]" name="account_id"/>
                                    <field name="amount"/>
                                    <field context="{'partner_id': partner_id, 'amount': amount, 'account_id': account_id, 'currency_id': parent.currency}" name="reconcile_id"/>
                                    <field invisible="1" name="reconcile_amount"/>
                                </tree>
                                <form string="Statement lines">
                                    <field name="date"/>
                                    <field name="name"/>
                                    <field name="type"/>
                                    <field name="partner_id" on_change="onchange_partner_id(partner_id, type, parent.currency)"/>
                                    <field domain="[('journal_id', '=', parent.journal_id), ('type', '&lt;&gt;', 'view')]" name="account_id"/>
                                    <field name="amount"/>
                                    <field context="{'partner_id':partner_id,'amount':amount,'account_id':account_id}" name="reconcile_id"/>
                                    <field name="ref"/>
                                    <separator colspan="4" string="Notes"/>
                                    <field colspan="4" name="note" nolabel="1"/>
                                </form>
                            </field>
                        </page>
                        <page string="Real Entries">
                            <field colspan="4" name="move_line_ids" nolabel="1"/>
                        </page>
                    </notebook>
                    <group col="7" colspan="4">
                        <field name="state" select="2"/>
                        <field name="balance_end"/>
                        <button name="button_dummy" states="draft" string="Compute"/>
                        <button name="button_confirm" states="draft" string="Confirm" type="object"/>
                        <button name="button_cancel" states="confirm" string="Cancel" type="object"/>
                    </group>
                </form>
            </field>
        </record>
        <record id="action_bank_statement_tree" model="ir.actions.act_window">
            <field name="name">Statements</field>
            <field name="res_model">account.bank.statement</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>
        <menuitem action="action_bank_statement_tree" id="menu_bank_statement_tree" parent="menu_finance_entries"/>

        <record id="action_bank_statement_draft_tree" model="ir.actions.act_window">
            <field name="name">Draft statements</field>
            <field name="res_model">account.bank.statement</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="domain">[('state','=','draft')]</field>
        </record>
        <menuitem action="action_bank_statement_draft_tree" id="menu_bank_statement_draft_tree" parent="account.menu_bank_statement_tree"/>

        <record id="action_bank_statement_tree2" model="ir.actions.act_window">
            <field name="name">New Statement</field>
            <field name="res_model">account.bank.statement</field>
            <field name="view_type">form</field>
            <field name="view_mode">form,tree</field>
        </record>
        <menuitem action="action_bank_statement_tree2" id="menu_bank_statement_tree2" parent="menu_bank_statement_tree"/>

        <record id="view_bank_statement_reconcile" model="ir.ui.view">
            <field name="name">account.bank.statement.reconcile.form</field>
            <field name="model">account.bank.statement.reconcile</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Reconcile">
                    <field name="name" select="1"/>
                    <newline/>
                    <field name="total_second_amount"/>
                    <field name="total_second_currency"/>
                    <newline/>
                    <field name="total_amount"/>
                    <field name="total_currency"/>
                    <newline/>
                    <separator colspan="4" string="Entries"/>
                    <field colspan="4" domain="[('partner_id','=',context.get('partner_id', False)),('state','=','valid'),('account_id','=',context.get('account_id', False)),('reconcile_id', '=', False)]" name="line_ids" nolabel="1" view_mode="tree"/>
                    <field colspan="4" name="line_new_ids" nolabel="1">
                        <tree editable="bottom" string="Write-Off">
                            <field name="account_id"/>
                            <field name="amount"/>
                            <field name="name"/>
                        </tree>
                    </field>
                    <group col="5" colspan="4">
                        <field name="total_entry"/>
                        <field name="total_new"/>
                        <field name="total_balance"/>
                        <button colspan="2" name="dummy" string="Compute"/>
                    </group>
                </form>
            </field>
        </record>
        <!--
	Account Types
	-->
        <record id="view_account_type_tree" model="ir.ui.view">
            <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 id="view_account_type_form" model="ir.ui.view">
            <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 id="action_account_type_form" model="ir.actions.act_window">
            <field name="name">Account Types</field>
            <field name="res_model">account.account.type</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>
        <menuitem action="action_account_type_form" groups="base.group_extended" id="menu_action_account_type_form" parent="account.account_account_menu"/>
        <!--
	Entries
	-->
        <record id="view_account_move_tree" model="ir.ui.view">
            <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="state"/>
                </tree>
            </field>
        </record>

        <!--
	Reconcile
	-->

        <record id="view_move_reconcile_form" model="ir.ui.view">
            <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">
                    <group col="6" colspan="4">
                        <field name="name" select="1"/>
                        <field name="create_date" select="1"/>
                        <field name="type" select="1"/>
                    </group>
                    <field colspan="4" name="line_id" nolabel="1"/>
                </form>
            </field>
        </record>

        <!--
	Tax Codes
	-->
        <record id="view_tax_code_tree" model="ir.ui.view">
            <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 id="view_tax_code_form" model="ir.ui.view">
            <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"/>
                    <field name="company_id"/>
                    <field name="code" select="1"/>
                    <field name="parent_id" select="1"/>
                    <field name="sign"/>
                    <newline/>
                    <field name="sum"/>
                    <field name="sum_period"/>
                    <newline/>
                    <field colspan="4" name="info"/>
                </form>
            </field>
        </record>
        <record id="action_tax_code_list" model="ir.actions.act_window">
            <field name="name">Tax codes</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>
       <menuitem id="next_id_27" name="Taxes" parent="account.menu_finance_configuration"/>
		<menuitem action="action_tax_code_list" id="menu_action_tax_code_list" parent="next_id_27" sequence="12"/>


        <!--
	Tax
	-->
        <record id="view_tax_tree" model="ir.ui.view">
            <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="description"/>
                </tree>
            </field>
        </record>
        <record id="view_tax_form" model="ir.ui.view">
            <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"/>
                            <field name="company_id"/>
                            <field name="description" select="1"/>
                            <field name="tax_group" select="1"/>
                            <field name="active" select="2"/>
                            <field name="type"/>
                            <field name="applicable_type"/>
                            <field name="amount" select="2" states="{'type==percent': {'visible': 0}"/>
                            <field groups="base.group_extended" name="include_base_amount"/>
                            <field groups="base.group_extended" name="domain"/>
                            <newline/>
                            <field name="account_collected_id"/>
                            <label colspan="2" nolabel="1" string="Keep empty to use the income account"/>
                            <field name="account_paid_id"/>
                            <label colspan="2" nolabel="1" string="Keep empty to use the expense account"/>
                            <field groups="base.group_extended" name="child_depend"/>
                            <field groups="base.group_extended" name="sequence"/>
                            <newline/>
                            <field colspan="4" groups="base.group_extended" name="child_ids"/>
                        </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 groups="base.group_extended" string="Special Computation">
                            <separator colspan="4" string="Compute Code (if type=code)"/>
                            <field colspan="4" name="python_compute" nolabel="1"/>
                            <separator colspan="4" string="Applicable Code (if type=code)"/>
                            <field colspan="4" name="python_applicable" nolabel="1"/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>
        <record id="action_tax_form" model="ir.actions.act_window">
            <field name="name">Taxes</field>
            <field name="res_model">account.tax</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_tax_tree"/>
        </record>
        <menuitem action="action_tax_form" id="menu_action_tax_form" parent="next_id_27"/>



        <!--
	Entries Journal lines
	-->

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

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

        <wizard id="action_move_journal_line_form" menu="False" model="account.move.line" name="account.move.journal" string="Entries by Journal"/>
        <menuitem action="action_move_journal_line_form" id="menu_action_move_journal_line_form" parent="account.menu_finance_entries" type="wizard"/>

        <record id="action_move_journal_period_line_form" model="ir.actions.act_window">
            <field name="name">Entries in Open Journals</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 action="action_move_journal_period_line_form" id="menu_action_move_journal_period_line_form" parent="account.menu_action_move_journal_line_form"/>

        <!--
	Entries lines
	-->

        <record id="view_move_line_tree" model="ir.ui.view">
            <field name="name">account.move.line.tree</field>
            <field name="model">account.move.line</field>
            <field name="type">tree</field>
            <field eval="4" name="priority"/>
            <field name="arch" type="xml">
                <tree string="Account Entry Line">
                    <field name="date"/>
                    <field name="move_id"/>
                    <field name="ref"/>
                    <field name="invoice"/>
                    <field name="name"/>
                    <field name="partner_id"/>
                    <field name="account_id"/>
                    <field name="journal_id"/>
                    <field name="debit" sum="Total debit"/>
                    <field name="credit" sum="Total credit"/>
                    <field name="amount_currency"/>
                    <field name="currency_id"/>
                    <field name="state"/>
                    <field name="reconcile_id"/>
                    <field name="reconcile_partial_id"/>
                </tree>
            </field>
        </record>

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

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

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

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


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

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

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

        <record id="action_move_line_select" model="ir.actions.act_window">
            <field name="name">account.move.line.select</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_tree"/>
        </record>

        <!--
	Account.Entry Edition
	-->

        <record id="view_move_tree" model="ir.ui.view">
            <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 id="view_move_form" model="ir.ui.view">
            <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 colspan="4" string="General Information"/>
                    <field name="name" select="1"/>
                    <field name="ref" select="1"/>
                    <field name="period_id" select="2"/>
                    <field name="journal_id" select="1"/>

                    <separator colspan="4" string="Entry Lines"/>
                    <field colspan="4" name="line_id" nolabel="1" readonly="1" widget="one2many_list">
                        <form string="Account Entry Line">
                            <separator colspan="4" string="General Information"/>
                            <field name="name" select="1"/>
                            <field name="date"/>
                            <field name="account_id"/>
                            <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit)"/>

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

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

                            <separator colspan="4" string="State"/>
                            <field name="reconcile_id"/>
                            <field name="reconcile_partial_id"/>
                            <field name="statement_id"/>
                            <field name="state"/>
                        </form>
                        <tree editable="top" string="Account Entry Line">
                            <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>

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

        <record id="action_move_line_form" model="ir.actions.act_window">
            <field name="name">Entries</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_tree"/>
        </record>
        <menuitem id="next_id_29" name="Search Entries" parent="account.menu_finance_entries"/><menuitem action="action_move_line_form" id="menu_action_move_line_form" parent="next_id_29"/>

        <record id="action_move_line_search" model="ir.actions.act_window">
            <field name="name">Entry lines</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_tree"/>
        </record>
        <record id="action_move_line_search_view1" model="ir.actions.act_window.view">
            <field eval="10" name="sequence"/>
            <field name="view_mode">tree</field>
            <field name="view_id" ref="view_move_line_tree"/>
            <field name="act_window_id" ref="action_move_line_search"/>
        </record>
        <record id="action_move_line_search_view2" model="ir.actions.act_window.view">
            <field eval="20" name="sequence"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_move_line_form"/>
            <field name="act_window_id" ref="action_move_line_search"/>
        </record>

        <menuitem action="action_move_line_search" id="menu_action_move_line_search" parent="account.next_id_29"/>

        <menuitem id="menu_finance_charts" name="Charts" parent="account.menu_finance" sequence="7"/>
        <wizard id="wizard_account_chart" menu="False" model="account.account" name="account.chart" string="Accounts Charts"/>
        <menuitem action="wizard_account_chart" id="menu_action_account_tree2" parent="account.menu_finance_charts" type="wizard"/>
        <menuitem action="action_account_tree2" id="menu_action_account_tree3" parent="account.menu_action_account_tree2"/>



        <record id="view_bank_statement_reconcile_form" model="ir.ui.view">
            <field name="name">account.bank.statement.reconcile.form</field>
            <field name="model">account.bank.statement</field>
            <field eval="30" name="priority"/>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Statement">
                    <field name="name" select="1"/>
                    <field name="date" select="1"/>
                    <field name="journal_id" on_change="onchange_journal_id(journal_id)" select="1"/>
                    <field name="currency"/>
                    <newline/>
                    <field name="balance_start"/>
                    <field name="balance_end_real"/>
                    <notebook colspan="4">
                        <page string="Select entries">
                            <field colspan="4" domain="[('statement_id', '=', False), ('journal_id', '=', journal_id)]" name="move_line_ids" nolabel="1" widget="many2many"/>
                        </page>
                        <page string="Entry encoding">
                            <separator colspan="4" string="Entry Lines"/>
                            <field name="period_id"/>
                            <field colspan="4" name="line_ids" nolabel="1">
                                <tree editable="bottom" string="Statement lines">
                                    <field name="date"/>
                                    <field name="name"/>
                                    <field name="type"/>
                                    <field name="partner_id" on_change="onchange_partner_id(partner_id, type, parent.currency)"/>
                                    <field domain="[('journal_id', '=', parent.journal_id)]" name="account_id"/>
                                    <field name="amount"/>
                                    <field context="{'partner_id': partner_id, 'amount': amount, 'account_id': account_id}" name="reconcile_id"/>
                                </tree>
                                <form string="Statement lines">
                                    <field name="date"/>
                                    <field name="name"/>
                                    <field name="type"/>
                                    <field name="partner_id" on_change="onchange_partner_id(partner_id, type, parent.currency)"/>
                                    <field domain="[('journal_id', '=', parent.journal_id)]" name="account_id"/>
                                    <field name="amount"/>
                                    <field context="{'partner_id': partner_id, 'amount': amount, 'account_id': account_id}" name="reconcile_id"/>
                                </form>
                            </field>
                        </page>
                    </notebook>
                    <group col="7" colspan="4">
                        <field name="state" select="2"/>
                        <field name="balance_end"/>
                        <button name="button_dummy" states="draft" string="Compute"/>
                        <button name="button_confirm" states="draft" string="Confirm" type="object"/>
                        <button name="button_cancel" states="confirm" string="Cancel" type="object"/>
                    </group>
                </form>
            </field>
        </record>
        <record id="action_bank_statement_reconciliation_form" model="ir.actions.act_window">
            <field name="name">Statements reconciliation</field>
            <field name="res_model">account.bank.statement</field>
            <field name="view_type">form</field>
            <field name="view_mode">form,tree</field>
            <field name="view_id" ref="view_bank_statement_reconcile_form"/>
        </record>
        <menuitem id="next_id_30" name="Bank Reconciliation" parent="account.menu_finance_periodical_processing"/><menuitem action="action_bank_statement_reconciliation_form" id="menu_action_account_bank_reconcile_tree" parent="next_id_30"/>
        <wizard id="action_account_bank_reconcile_tree" menu="False" model="account.move.line" name="account.move.bank.reconcile" string="Bank reconciliation"/>
        <menuitem action="action_account_bank_reconcile_tree" id="menu_action_account_bank_reconcile_check_tree" parent="account.next_id_30" type="wizard"/>

        <act_window domain="[('account_id', '=', active_id)]" id="act_account_acount_move_line_open" name="Entries" res_model="account.move.line" src_model="account.account"/>

        <act_window domain="[('account_id', '=', active_id),('reconcile_id','=',False)]" id="act_account_acount_move_line_open_unreconciled" name="Unreconciled entries" res_model="account.move.line" src_model="account.account"/>

        <act_window domain="[('reconcile_id', '=', active_id)]" id="act_account_acount_move_line_reconcile_open" name="Reconciled entries" res_model="account.move.line" src_model="account.move.reconcile"/>


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

        <record id="view_journal_period_tree" model="ir.ui.view">
            <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 icon="icon" name="period_id"/>
                    <field name="journal_id"/>
                    <field name="state"/>
                </tree>
            </field>
        </record>
        <record id="action_account_journal_period_tree" model="ir.actions.act_window">
            <field name="name">Journals</field>
            <field name="res_model">account.journal.period</field>
            <field name="view_type">tree</field>
        </record>
        <menuitem action="action_account_journal_period_tree" id="menu_action_account_journal_period_tree" parent="account.menu_finance_reporting"/>

        <record id="action_account_budget_post_tree" model="ir.actions.act_window">
            <field name="name">Budgets</field>
            <field name="res_model">account.budget.post</field>
            <field name="view_type">tree</field>
        </record>
        <menuitem action="action_account_budget_post_tree" id="menu_action_account_budget_post_tree" parent="account.menu_finance_reporting"/>

        <!--
	Budgets
	-->
        <record id="view_budget_post_form" model="ir.ui.view">
            <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="Master Budget">
                    <notebook>
                        <page string="Definition">
                            <field name="code" select="1"/>
                            <field name="name" select="1"/>
                        </page>
                        <page string="Dotations">
                            <button name="%(wizard_budget_spread)d" string="Spread" type="action"/>
                            <field colspan="4" name="dotation_ids" nolabel="1"/>
                        </page>
                        <page string="Accounts">
                            <field colspan="4" name="account_ids" nolabel="1"/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>
        <record id="view_budget_post_tree" model="ir.ui.view">
            <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="Master Budget">
                    <field name="code"/>
                    <field name="name"/>
                </tree>
            </field>
        </record>
        <record id="view_budget_post_dotation_form" model="ir.ui.view">
            <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="Master Budget Expenses">
                    <field name="period_id"/>
                    <field name="amount"/>
                </form>
            </field>
        </record>
        <record id="view_budget_post_dotation_tree" model="ir.ui.view">
            <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="Master Budget Expenses">
                    <field name="period_id"/>
                    <field name="amount"/>
                </tree>
            </field>
        </record>

        <record id="open_budget_post_form" model="ir.actions.act_window">
            <field name="name">Master Budgets</field>
            <field name="res_model">account.budget.post</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_budget_post_tree"/>
        </record>
        <menuitem id="next_id_31" name="Budgets" parent="account.menu_finance_configuration"/><menuitem action="open_budget_post_form" id="menu_budget_post_form" parent="next_id_31"/>


        <!--
	# Account Models
-->

        <record id="view_model_line_tree" model="ir.ui.view">
            <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 id="view_model_line_form" model="ir.ui.view">
            <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 colspan="4" name="name" select="1"/>
                    <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 id="view_model_form" model="ir.ui.view">
            <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 colspan="4" name="lines_id" widget="one2many_list"/>
                    <separator string="Legend" colspan="4"/>
                    <field name="legend" colspan="4" nolabel="1"/>
                    <group col="1" colspan="4">
                        <button name="%(wizard_account_use_model)d" string="Create entries" type="action" />
                    </group>
                </form>
            </field>
        </record>
        <record id="view_model_tree" model="ir.ui.view">
            <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 id="action_model_form" model="ir.actions.act_window">
            <field name="name">Models Definition</field>
            <field name="res_model">account.model</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>
        <menuitem id="next_id_32" name="Models" parent="account.menu_finance_configuration"/><menuitem action="action_model_form" id="menu_action_model_form" parent="next_id_32"/>


        <!--
	# Payment Terms
-->

        <record id="view_payment_term_line_tree" model="ir.ui.view">
            <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 id="view_payment_term_line_form" model="ir.ui.view">
            <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 id="view_payment_term_form" model="ir.ui.view">
            <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 colspan="4" string="Information"/>
                    <field name="name" select="1"/>
                    <field name="active" select="1"/>
                    <separator colspan="4" string="Description on invoices"/>
                    <field colspan="4" name="note"/>
                    <separator colspan="4" string="Computation"/>
                    <field colspan="4" name="line_ids"/>
                </form>
            </field>
        </record>
        <record id="action_payment_term_form" model="ir.actions.act_window">
            <field name="name">Payment Terms</field>
            <field name="res_model">account.payment.term</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>
        <menuitem id="next_id_33" name="Payment Terms" parent="account.menu_finance_configuration"/><menuitem action="action_payment_term_form" id="menu_action_payment_term_form" parent="next_id_33"/>

        <!--
	# Account Subscriptions
-->

        <record id="view_subscription_line_form" model="ir.ui.view">
            <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 id="view_subscription_line_tree" model="ir.ui.view">
            <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 id="view_subscription_tree" model="ir.ui.view">
            <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 id="view_subscription_form" model="ir.ui.view">
            <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 colspan="4" string="Subscription Periods"/>
                    <field name="date_start" select="1"/>
                    <field name="period_total" select="2"/>

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

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

        <record id="action_subscription_form_running" model="ir.actions.act_window">
            <field name="name">Running Subscriptions</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 action="action_subscription_form_running" id="menu_action_subscription_form_running" parent="menu_action_subscription_form"/>

        <record id="action_subscription_form_new" model="ir.actions.act_window">
            <field name="name">New Subscription</field>
            <field name="res_model">account.subscription</field>
            <field name="view_type">form</field>
            <field name="view_mode">form,tree</field>
            <field name="view_id" ref="view_subscription_form"/>
        </record>
        <menuitem action="action_subscription_form_new" id="menu_action_subscription_form_new" parent="menu_action_subscription_form"/>

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

        <record id="action_move_line_tree1" model="ir.actions.act_window">
            <field name="name">Move line select</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','child_of', [active_id]),('state','&lt;&gt;','draft')]</field>
        </record>
        <wizard id="wizard_move_line_select" menu="False" model="account.move.line" name="account.move.line.select" string="Move line select"/>
        <record id="ir_open_account_account" model="ir.values">
            <field eval="'tree_but_open'" name="key2"/>
            <field eval="'account.account'" name="model"/>
            <field name="name">Open all entries lines</field>
            <field eval="'ir.actions.wizard,%d'%wizard_move_line_select" name="value"/>
            <field eval="True" name="object"/>
        </record>


        <record id="view_move_line_tax_tree" model="ir.ui.view">
            <field name="name">account.move.line.tax.tree</field>
            <field name="model">account.move.line</field>
            <field name="type">tree</field>
            <field eval="4" name="priority"/>
            <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" sum="Total debit"/>
                    <field name="credit" sum="Total credit"/>
                    <field name="state"/>
                </tree>
            </field>
        </record>

        <record id="action_tax_code_line_open" model="ir.actions.act_window">
            <field name="name">account.move.line</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 id="ir_open_tax_move_line" model="ir.values">
            <field name="key2">tree_but_open</field>
            <field name="model">account.tax.code</field>
            <field name="name">Tax Details</field>
            <field eval="'ir.actions.act_window,%d'%action_tax_code_line_open" name="value"/>
            <field eval="True" name="object"/>
        </record>


        <!--
	# Admin config
	-->

        <act_window domain="[('journal_id', '=', active_id)]" id="act_account_journal_2_account_bank_statement" name="Bank statements" res_model="account.bank.statement" src_model="account.journal"/>

        <act_window domain="[('journal_id', '=', active_id)]" id="act_account_journal_2_account_move_line" name="Entry lines" res_model="account.move.line" src_model="account.journal"/>

        <act_window domain="[('partner_id', '=', active_id), ('account_id.type', 'in', ['receivable', 'payable']), ('reconcile_id','=',False)]" id="act_account_partner_account_move_unreconciled" name="Receivables &amp; Payables" res_model="account.move.line" src_model="res.partner"/>

        <act_window domain="[('partner_id', '=', active_id)]" id="act_account_partner_account_move" name="All account entries" res_model="account.move.line" src_model="res.partner"/>



        <!-- configuration wizard view -->

        <record id="view_config_fiscalyear_form" model="ir.ui.view">
            <field name="name">Configure Fiscal Year</field>
            <field name="model">account.config.fiscalyear</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Configure Your Fiscal Year">
                    <separator col="4" colspan="4" string="Configure Your Fiscal Year"/>
                    <field name="name"/>
                    <field name="code"/>
                    <field name="date1"/>
                    <field name="date2"/>
					<separator string="" colspan="4"/>
					<label string="" colspan="2"/>
                    <group col="4" colspan="4">
                        <button icon="gtk-cancel" special="cancel" string="Don't Create" name="action_cancel" type="object"/>
                        <button icon="gtk-ok" name="action_create" string="Create" type="object"/>
                    </group>
                </form>
            </field>
        </record>

        <record id="action_config_fiscalyear_form" model="ir.actions.act_window">
            <field name="name">Configure Fiscal Year</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">account.config.fiscalyear</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>



        <record id="view_config_journal_bank_account" model="ir.ui.view">
            <field name="name">Configure Journal of Bank account</field>
            <field name="model">account.config.journal.bank.account</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Configure Journal of Bank account">
                    <separator col="4" colspan="4" string="Configure Journal of Bank account"/>
                    <newline/>
                    <field colspan="4" mode="tree" name="lines_id" nolabel="1" widget="one2many_list">
                        <form string="Journal Lines">
                            <field name="name"/>
                            <field name="bank_account_id"/>
                            <field name="view_id"/>
                        </form>
                        <tree editable="bottom" string="Account Journals">
                            <field name="name"/>
                            <field name="bank_account_id"/>
                            <field name="view_id"/>
                        </tree>
                    </field>
                    <group col="4" colspan="4">
                        <button icon="gtk-cancel" special="cancel" name="action_cancel" type="object" string="Cancel"/>
                        <button icon="gtk-ok" name="action_create" string="Create" type="object"/>
                    </group>
                </form>
            </field>
        </record>

        <record id="action_config_journal_bank_account" model="ir.actions.act_window">
            <field name="name">Configure Journal of Bank account</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">account.config.journal.bank.account</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>

        <!-- register configuration wizard -->

        <record id="config_fiscalyear" model="ir.module.module.configuration.step">
            <field name="name">Define fiscal years</field>
            <field name="note">Define fiscal years</field>
            <field name="action_id" ref="action_config_fiscalyear_form"/>
            <field name="state">open</field>
        </record>

        <record id="config_journal_bank_account" model="ir.module.module.configuration.step">
            <field name="name">Define journal for bank accounts</field>
            <field name="note">Define journal for bank accounts</field>
            <field name="action_id" ref="action_config_journal_bank_account"/>
            <field name="state">open</field>
        </record>

		<!-- Account Templates -->

		<record id="view_account_template_form" model="ir.ui.view">
            <field name="name">account.account.template.form</field>
            <field name="model">account.account.template</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Account Template">
                    <notebook>
                        <page string="General Information">
                            <field colspan="2" name="name" select="1"/>
                           <!-- <field name="company_id" colspan="2" />-->
                            <newline/>
                            <field name="type" select="1"/>
                            <field name="code" select="1"/>
                            <field name="shortcut"/>
                            <field name="sign"/>
                            <field name="currency_id" select="2"/>
                            <field name="reconcile"/>
                        </page>
                        <page string="Notes">
                            <field colspan="4" name="note" nolabel="1"/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>

        <record id="action_account_template_form" model="ir.actions.act_window">
            <field name="name">Account Templates</field>
            <field name="res_model">account.account.template</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>
        <menuitem id="account_account_template_menu" name="Templates" parent="account.menu_finance_configuration"/>
        <menuitem action="action_account_template_form" id="menu_action_account_template_form" parent="account_account_template_menu"/>

		<!-- Account Chart Templates -->

		<record id="view_account_chart_template_form" model="ir.ui.view">
            <field name="name">account.chart.template.form</field>
            <field name="model">account.chart.template</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Account Chart Template">
                    <field colspan="4" name="name" select="1"/>
                    <newline/>
                    <field name="account_root_id" select="1"/>
                    <field name="bank_account_view_id" select="1"/>
                    <field name="property_receivable_id"/>
                    <field name="property_payable_id"/>
                    <field name="property_account_expense_categ_id" />
                    <field name="property_account_income_categ_id"/>
                </form>
            </field>
        </record>
        <record id="view_account_chart_template_tree" model="ir.ui.view">
            <field name="name">account.chart.template.tree</field>
            <field name="model">account.chart.template</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Account Chart Template">
                    <field name="name"/>
                    <field name="account_root_id"/>
                    <field name="bank_account_view_id"/>
                </tree>
            </field>
        </record>
        <record id="action_account_chart_template_form" model="ir.actions.act_window">
            <field name="name">Account Chart Templates</field>
            <field name="res_model">account.chart.template</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>

        <menuitem action="action_account_chart_template_form" id="menu_action_account_chart_template_form" parent="account_account_template_menu"/>

		<!-- Account Tax Templates -->

		<record id="view_account_tax_template_form" model="ir.ui.view">
            <field name="name">account.tax.template.form</field>
            <field name="model">account.tax.template</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Account Tax Template">
                    <field colspan="4" name="name" select="1"/>
                    <newline/>
                    <field name="description" select="1" colspan="4"/>
                    <newline/>
                    <field name="sequence" select="1"/>
                    <field name="type"/>
                    <field name="domain"/>
                    <field name="tax_group" />
                </form>
            </field>
        </record>
        <record id="view_account_tax_template_tree" model="ir.ui.view">
            <field name="name">account.tax.template.tree</field>
            <field name="model">account.tax.template</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Account Tax Template">
                    <field name="description"/>
                </tree>
            </field>
        </record>
        <record id="action_account_tax_template_form" model="ir.actions.act_window">
            <field name="name">Account Tax Templates</field>
            <field name="res_model">account.tax.template</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>

        <menuitem action="action_account_tax_template_form" id="menu_action_account_tax_template_form" parent="account_account_template_menu"/>

    </data>
</terp>
