~vauxoo/addons-vauxoo/6.0-trunk

« back to all changes in this revision

Viewing changes to user_story/view/custom_project_task_view.xml

  • Committer: Jose Morales
  • Date: 2014-07-28 20:00:11 UTC
  • mfrom: (543.7.551 7.0-addons-vauxoo)
  • Revision ID: jose@vauxoo.com-20140728200011-csytovehrzwp24lr
[FORWARD PORT] 7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
    <data>
 
4
 
 
5
        <record id="custom_project_task_tree" model="ir.ui.view">
 
6
            <field name="name">custom.project.task.tree</field>
 
7
            <field name="model">custom.project.task</field>
 
8
            <field name="arch" type="xml">
 
9
                <tree editable="top" create='false' edit='false' string="Project Task">
 
10
                    <field name="deadline"/>
 
11
                    <field name="task_user_id"/>
 
12
                    <field name="project_leader_id"/>
 
13
                    <field name="analytic_id"/>
 
14
                    <field name="userstory"/>
 
15
                    <field name="task_id" options='{"no_open": True}'/>
 
16
                    <field name="state"/>
 
17
                </tree>
 
18
            </field>
 
19
        </record>
 
20
        
 
21
        <record id="custom_project_task_search" model="ir.ui.view">
 
22
            <field name="name">custom.project.task.search</field>
 
23
            <field name="model">custom.project.task</field>
 
24
            <field name="arch" type="xml">
 
25
                <search string="Project Task">                 
 
26
                    <field name="deadline"/>
 
27
                    <field name="task_user_id"/>
 
28
                    <field name="project_leader_id"/>
 
29
                    <field name="analytic_id"/>
 
30
                    <field name="userstory"/>                  
 
31
                    <field name="task_id"/>
 
32
                    <field name="state"/>
 
33
                    <group expand="0" string="Group By...">
 
34
                        <filter string="Deadline" icon="terp-go-month" domain="[]" context="{'group_by':'deadline'}"/>
 
35
                        <filter string="Task User" icon="terp-personal" domain="[]" context="{'group_by':'task_user_id'}"/>          
 
36
                        <filter string="Leader User" icon="terp-personal" domain="[]" context="{'group_by':'project_leader_id'}"/>  
 
37
                        <filter string="Project" icon="terp-go-month" domain="[]" context="{'group_by':'analytic_id'}"/>
 
38
                        <filter string="User Story" icon="terp-personal" domain="[]" context="{'group_by':'userstory'}"/>          
 
39
                        <filter string="Task" icon="terp-personal" domain="[]" context="{'group_by':'task_id'}"/>
 
40
                        <filter string="State" icon="terp-go-month" domain="[]" context="{'group_by':'state'}"/>
 
41
                    </group>
 
42
                </search>
 
43
            </field>
 
44
        </record>
 
45
        
 
46
        <record model="ir.ui.view" id="view_project_line_task_graph">
 
47
            <field name="name">Project Task Graph</field>
 
48
            <field name="model">custom.project.task</field>
 
49
            <field name="arch" type="xml">
 
50
                <graph string="Project Task" type="bar" orientation="horizontal">
 
51
                    <field name="task_user_id" group="True"/>
 
52
                    <field name="counter" operator="+"/>
 
53
                </graph>
 
54
            </field>
 
55
        </record>
 
56
 
 
57
        <record id="act_custom_project_task" model="ir.actions.act_window">
 
58
            <field name="name">Project Task Report</field>
 
59
            <field name="type">ir.actions.act_window</field>
 
60
            <field name="res_model">custom.project.task</field>
 
61
            <field name="view_type">form</field>
 
62
            <field name="view_mode">tree,form,graph</field>
 
63
            <field name="context">{"search_default_today":1}</field>
 
64
            <field name="view_id" ref="custom_project_task_tree"/>
 
65
        </record>
 
66
        
 
67
        <menuitem id="menu_project_management_report" name="Project Reports" parent="base.menu_main_pm" sequence="9" groups="user_story.group_management_reports"/>
 
68
        <menuitem id="menu_custom_project_task" parent="menu_project_management_report" action="act_custom_project_task" sequence="1" groups="user_story.group_management_reports"/>
 
69
 
 
70
    </data>
 
71
</openerp>