<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="board_sales_manager_form" model="ir.ui.view">
            <field name="name">board.sales.manager.form</field>
            <field name="model">board.board</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Sales Manager Dashboard">
                    <hpaned position="100">
                        <child1>
                            <action  name="%(sale.action_quotation_for_sale)d" string="Quotations"/>
                            <action width="510" name="%(sale.action_view_sales_by_month)d" string="Sales by Month"/>
                        </child1>
                        <child2>
                            <action  name="%(sale.action_sales_by_salesman)d" string="Sales by Salesman in last 90 days"/>
                            <action  name="%(sale.action_sales_by_partner)d" string="Sales per Customer in last 90 days"/>
                            <action  name="%(sale.action_sales_product_total_price)d" string="Sales by Product's Category in last 90 days"/>
                        </child2>
                    </hpaned>
                </form>
            </field>
        </record>

        <record id="open_board_sales_manager" model="ir.actions.act_window">
            <field name="name">Sales Manager Dashboard</field>
            <field name="res_model">board.board</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="board_sales_manager_form"/>
        </record>

        <menuitem id="board.menu_dasboard" name="Dashboard" sequence="0" parent="base.next_id_64"/>
        <menuitem action="open_board_sales_manager" icon="terp-graph" id="menu_board_sales_manager" parent="board.menu_dasboard" sequence="0" groups="base.group_sale_manager"/>
    </data>
</openerp>
