<?xml version="1.0" encoding="utf-8"?>
<terp>
    <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="action_project_pipeline_user" model="ir.actions.act_window">
            <field name="name">Pipeline of tasks</field>
            <field name="res_model">report.task.user.pipeline.open</field>
            <field name="view_type">form</field>
            <field name="view_mode">graph,tree</field>
            <field name="domain">[('user_id','in',department_users_get())]</field>
        </record>
        
        <record id="hr_timesheet_sheet_tree" model="ir.ui.view">
            <field name="name">hr.timesheet.sheet.tree.simplified.board</field>
            <field name="model">hr_timesheet_sheet.sheet</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Timesheets">
                    <field name="date_from"/>
                    <field name="user_id"/>
                    <field name="name"/>
                    <field name="total_attendance"/>
                    <field name="total_timesheet"/>
                    <field name="state"/>
                </tree>
            </field>
        </record>
        <record id="act_hr_timesheet_sheet" model="ir.actions.act_window">
            <field name="name">Timesheets</field>
            <field name="res_model">hr_timesheet_sheet.sheet</field>
            <field name="domain">[('state','&lt;&gt;','done'),('user_id','in',department_users_get())]</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="hr_timesheet_sheet_tree"/>
        </record>
        
        
        <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"/>
                            
                            <action colspan="4" height="150" name="%(act_hr_timesheet_sheet)d" string="User's timesheets"/>
                            
                        </child1>
                        <child2>
                            <button colspan="4" icon="gtk-ok" name="%(open_board_project)d" string="My tasks board" type="action"/>
                            
                            
                            <action colspan="4" name="%(report_analytic_planning.action_account_analytic_planning_stat_my_manager_form)d" string="My project's planning"/>
                            
                            <action colspan="4" name="%(action_project_pipeline_user)d" string="My user's pipeline"/>
                            
                        </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="board_project.next_id_86" sequence="1"/>
        
        
        
        
    </data>
</terp>