<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="view_account_chart" model="ir.ui.view">
            <field name="name">account.chart.form</field>
            <field name="model">account.chart</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Account charts">
                    <group colspan="4">
                        <field name="fiscalyear" on_change="onchange_fiscalyear(fiscalyear)"/>
                        <field name="target_move"/>
                        <label align="0.7" colspan="4" string="(If you do not select Fiscal year it will take all open fiscal years)"/>
                        <separator string="Periods" colspan="4"/>
                        <field name="period_from"/>
                        <field name="period_to"/>
                    </group>
                    <separator string="" colspan="4"/>
                    <group colspan="4" col="6">
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
                        <button icon="terp-gtk-go-back-rtl" string="Open Charts" name="account_chart_open_window" type="object"/>
                    </group>
                </form>
            </field>
        </record>

        <record id="action_account_chart" model="ir.actions.act_window">
            <field name="name">Chart of Accounts</field>
            <field name="res_model">account.chart</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="view_id" ref="view_account_chart"/>
            <field name="target">new</field>
            <field name="help">Display your company chart of accounts per fiscal year and filter by period. Have a complete tree view of all journal items per account code by clicking on an account.</field>
        </record>

        <menuitem icon="STOCK_INDENT" action="action_account_chart"
            id="menu_action_account_tree2"
            parent="account.menu_finance_charts" />
    </data>
</openerp>
