<?xml version="1.0" encoding="utf-8"?>
<terp>
    <data>
        
        <record id="note_project_manager_type" model="board.note.type">
            <field name="name">Project</field>
        </record>
        
        <record id="view_task_tree" model="ir.ui.view">
            <field name="name">project.task.tree</field>
            <field name="model">project.task</field>
            <field name="type">tree</field>
            <field eval="99" name="priority"/>
            <field name="arch" type="xml">
                <tree colors="red:date_deadline&lt;current_date;blue:date_deadline==current_date" string="My Tasks">
                    <field name="name"/>
                    <field name="project_id"/>
                    <field name="date_deadline"/>
                    <field name="planned_hours"/>
                    <field name="effective_hours"/>
                    <field name="priority"/>
                </tree>
            </field>
        </record>
        <record id="action_view_task_tree" model="ir.actions.act_window">
            <field name="name">My Open Tasks</field>
            <field name="res_model">project.task</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="domain">[('user_id','=',uid),('state','=','open')]</field>
            <field name="view_id" ref="view_task_tree"/>
        </record>
        <record id="action_view_task_tree_deadline" model="ir.actions.act_window">
            <field name="name">My Task's Deadlines</field>
            <field name="res_model">project.task</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="domain">[('user_id','=',uid),('state','=','open'),('date_deadline','&lt;&gt;',False)]</field>
            <field name="view_id" ref="view_task_tree"/>
        </record>
        
        <record id="action_view_board_note_tree" model="ir.actions.act_window">
            <field name="name">Public Notes</field>
            <field name="res_model">board.note</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="domain">[('type','=','Project')]</field>
        </record>
        
        <record id="board_project_form" model="ir.ui.view">
            <field name="name">board.project.form</field>
            <field name="model">board.board</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="My Board">
                    <hpaned>
                        
                        <child1>
                            
                            <action colspan="4" height="220" name="%(action_view_task_tree)d" string="My Open Tasks" width="510"/>
                            
                            <action colspan="4" height="150" name="%(action_view_task_tree_deadline)d" string="My Deadlines"/>
                            
                            <action colspan="4" height="150" name="%(action_view_board_note_tree)d" string="Public Notes"/>
                            
                        </child1>
                        
                        <child2>
                            <action colspan="4" name="%(report_analytic_planning.action_account_analytic_planning_stat_my_form)d" string="My Planning"/>
                            
                            <action colspan="4" name="%(report_timesheet.action_timesheet_user_stat_my)d" string="My Timesheet"/>
                            
                        </child2>
                    </hpaned>
                </form>
            </field>
        </record>
        
        <record id="open_board_project" model="ir.actions.act_window">
            <field name="name">Project 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_form"/>
        </record>
        
        <menuitem id="next_id_86" name="Project" parent="board.dashboard_menu"/><menuitem action="open_board_project" icon="terp-graph" id="menu_board_project" parent="next_id_86" sequence="1"/>
        
    </data>
</terp>