<?xml version="1.0" encoding="utf-8"?>
<terp>
    <data>
        
        <!-- Tasks by projects and users -->
        <record id="view_task_project_user_form" model="ir.ui.view">
            <field name="name">report.project.task.user.form</field>
            <field name="model">report.project.task.user</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Tasks by Project and User">
                    <field name="name" select="1"/>
                    <field name="user_id" select="1"/>
                    <field name="project_id" select="1"/>
                    <field name="task_closed" select="1"/>
                    <field name="hours_planned" select="1"/>
                    <field name="hours_effective" select="1"/>
                    <field name="hours_delay" select="1"/>
                    <field name="closing_days"/>
                </form>
            </field>
        </record>
        
        
        <record id="view_task_project_user_tree" model="ir.ui.view">
            <field name="name">report.project.task.user.tree</field>
            <field name="model">report.project.task.user</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Tasks by projects and users">
                    <field name="name" select="1"/>
                    <field name="user_id" select="1"/>
                    <field name="project_id" select="1"/>
                    <field name="task_closed" select="1"/>
                    <field name="hours_planned" select="1"/>
                    <field name="hours_effective" select="1"/>
                    <field name="hours_delay" select="1"/>
                    <field name="closing_days"/>
                </tree>
            </field>
        </record>
        <record id="action_project_task_user_tree_month" model="ir.actions.act_window">
            <field name="name">Tasks finnished by project and user (this month)</field>
            <field name="res_model">report.project.task.user</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree</field>
            <field name="domain">[('name','=',time.strftime('%Y-%m-01'))]</field>
        </record>
        <menuitem id="next_id_63" name="This Month" parent="report_task.next_id_57"/><menuitem action="action_project_task_user_tree_month" id="menu_project_task_user_tree_month" parent="next_id_63"/>
        
        <record id="action_project_task_user_tree" model="ir.actions.act_window">
            <field name="name">Tasks Closed by Project and User</field>
            <field name="res_model">report.project.task.user</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree</field>
        </record>
        <menuitem action="action_project_task_user_tree" id="menu_project_task_user_tree" parent="report_task.next_id_58"/>
        
        <!-- Tasks by projects -->
        
        <record id="view_task_project_form" model="ir.ui.view">
            <field name="name">report.project.task.form</field>
            <field name="model">report.project.task</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Tasks by Project">
                    <field name="name" select="1"/>
                    <field name="project_id" select="1"/>
                    <field name="task_closed" select="1"/>
                    <field name="hours_planned" select="1"/>
                    <field name="hours_effective" select="1"/>
                    <field name="hours_delay" select="1"/>
                    <field name="closing_days"/>
                </form>
            </field>
        </record>
        <record id="view_task_project_tree" model="ir.ui.view">
            <field name="name">report.project.task.tree</field>
            <field name="model">report.project.task</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Tasks by project">
                    <field name="name" select="1"/>
                    <field name="project_id" select="1"/>
                    <field name="task_closed" select="1"/>
                    <field name="hours_planned" select="1"/>
                    <field name="hours_effective" select="1"/>
                    <field name="hours_delay" select="1"/>
                    <field name="closing_days"/>
                </tree>
            </field>
        </record>
        <record id="action_project_task_tree_month" model="ir.actions.act_window">
            <field name="name">Tasks finnished by project (this month)</field>
            <field name="res_model">report.project.task</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree</field>
            <field name="domain">[('name','=',time.strftime('%Y-%m-01'))]</field>
        </record>
        <menuitem action="action_project_task_tree_month" id="menu_project_task_tree_month" parent="report_project.next_id_63"/>
        
        <record id="action_project_task_tree" model="ir.actions.act_window">
            <field name="name">Tasks Closed by Project</field>
            <field name="res_model">report.project.task</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree</field>
        </record>
        <menuitem action="action_project_task_tree" id="menu_project_task_tree" parent="report_task.next_id_58"/>
        
    </data>
</terp>