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

        <record id="note_project_type" model="board.note.type">
            <field name="name">Project managers</field>
        </record>

        <!--
         Board for project managers
         -->
        <act_window domain="[('manager', '=', uid)]" id="act_my_project" name="My projects" res_model="project.project" view_mode="tree,form" view_type="form"/>

        <act_window domain="[('user_id','=',uid),('state','&lt;&gt;','close')]" id="act_my_account" name="My accounts to invoice" res_model="account.analytic.account" view_id="view_account_analytic_simplified" view_mode="tree,form" view_type="form"/>

        <record id="board_project_manager_form" model="ir.ui.view">
            <field name="name">board.project.manager.form</field>
            <field name="model">board.board</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Project manager board">
                    <hpaned>
                        <child1>
                          <!--  <action colspan="4" height="220" name="%(act_my_project)d" string="My projects" width="510"/>-->

                            <action colspan="4" height="150" name="%(act_my_account)d" string="My accounts to invoice" width="510"/>
                        </child1>
                        <child2>
                           <button colspan="4" icon="terp-partner" name="%(open_board_project)d" string="My tasks board" type="action"/>
                        </child2>
                    </hpaned>
                </form>
            </field>
        </record>

        <record id="open_board_project_manager" model="ir.actions.act_window">
            <field name="name">Project Manager 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_project_manager_form"/>
        </record>

        <menuitem action="open_board_project_manager" icon="terp-graph" id="menu_board_project_manager" parent="project.next_id_86" sequence="1" groups="project.group_project_user"/>

    </data>
</openerp>
