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

        <record id="note_account_type" model="board.note.type">
            <field name="name">Accountants</field>
        </record>

        <record id="action_aged_receivable" model="ir.actions.act_window">
            <field name="name">Receivable Accounts</field>
            <field name="res_model">report.account.receivable</field>
            <field name="view_type">form</field>
            <field name="view_mode">graph,tree</field>
            <field name="domain">[('type','=','receivable')]</field>
        </record>
        <record id="action_aged_income" model="ir.actions.act_window">
            <field name="name">Income Accounts</field>
            <field name="res_model">report.account.receivable</field>
            <field name="view_type">form</field>
            <field name="view_mode">graph,tree</field>
            <field name="domain">[('type','=','income')]</field>
        </record>

        <record id="board_account_form" model="ir.ui.view">
            <field name="name">board.account.form</field>
            <field name="model">board.board</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Account Board">
                    <hpaned>
                        <child1>
                            <action colspan="4" height="160" width="400" name="%(account.action_invoice_tree1)d" string="Draft Customer Invoices" domain="[('state','=','draft'),('type','=','out_invoice')]"/>
                        </child1>
                        <child2>
                            <action colspan="4" height="220" name="%(action_aged_receivable)d" string="Aged receivables"/>
                            <action colspan="4" height="220" name="%(action_aged_income)d" string="Aged income"/>
                        </child2>
                    </hpaned>
                </form>
            </field>
        </record>

        <record id="open_board_account" model="ir.actions.act_window">
            <field name="name">Accounting Dashboard</field>
            <field name="res_model">board.board</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="usage">menu</field>
            <field name="view_id" ref="board_account_form"/>
        </record>

        <menuitem id="menu_dashboard_acc" name="Dashboard" sequence="2" parent="account.menu_finance_reporting" groups="group_account_user,group_account_manager,base.group_system"/>
        <menuitem action="open_board_account" icon="terp-graph" id="menu_board_account" parent="menu_dashboard_acc" sequence="1"/>
        <menuitem icon="terp-account" id="account.menu_finance" name="Accounting" sequence="13" action="open_board_account"/>
    </data>
</openerp>
