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

        <record id="view_task_tree" model="ir.ui.view">
            <field name="name">project.task.tree</field>
            <field name="model">project.task</field>
            <field eval="99" name="priority"/>
            <field name="arch" type="xml">
                <tree colors="red:date_deadline&lt;current_date;blue:date_deadline==current_date;black:date_deadline&gt;current_date" string="My Tasks">
                    <field name="name"/>
                    <field name="project_id"/>
                    <field name="date_deadline"/>
                    <field name="priority"/>
                    <field name="planned_hours" widget="float_time"/>
                    <field name="effective_hours" widget="float_time"/>
                    <field name="progress" widget="progressbar"/>
                    <field name="stage_id" invisible="context.get('set_visible',False)"/>
                    <field name="state" invisible="1"/>
                </tree>
            </field>
        </record>

        <record id="my_open_tasks_action" model="ir.actions.act_window">
            <field name="name">My 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','not in',('cancel','done'))]</field>
            <field name="view_id" ref="view_task_tree"/>
        </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="arch" type="xml">
                <form string="My Board" version="7.0">
                    <board style="2-1">
                        <column>
                            <action name="%(my_open_tasks_action)d" string="My Tasks"/>
                        </column>
                        <column>
                            <action
                                groups="project.group_project_user"
                                name="%(action_view_task_history_cumulative)d"
                                string="Open Tasks"/>
                        </column>
                    </board>
                </form>
            </field>
        </record>

        <record id="open_board_project" model="ir.actions.act_window">
            <field name="name">Project</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="menu_project_dashboard"
                  sequence="35"
                  parent="base.menu_reporting_dashboard"
                  action="open_board_project"/>

    </data>
</openerp>
