~vauxoo/addons-vauxoo/6.0-trunk

« back to all changes in this revision

Viewing changes to user_story/view/hr_timesheet_all_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="hr_timesheet_line_tree_all" model="ir.ui.view">
 
6
            <field name="name">custom.timesheet.all.tree</field>
 
7
            <field name="model">custom.timesheet.all</field>
 
8
            <field name="arch" type="xml">
 
9
                <tree editable="top" create='false' edit='false' string="Timesheet Activities All">
 
10
                    <field name="date"/>
 
11
                    <field name="user_id" options='{"no_open": True}'/> 
 
12
                    <field name="analytic_id"/>
 
13
                    <field name="userstory"/>
 
14
                    <field name="task_id" options='{"no_open": True}'/>
 
15
                    <field name="name"/>
 
16
                    <field name="period"/>
 
17
                    <field name="unit_amount" widget="float_time"/>
 
18
                    <field name="invoiceable"/>
 
19
                </tree>
 
20
            </field>
 
21
        </record>
 
22
        
 
23
        <record id="hr_timesheet_line_all_search" model="ir.ui.view">
 
24
            <field name="name">custom.timesheet.all.search</field>
 
25
            <field name="model">custom.timesheet.all</field>
 
26
            <field name="arch" type="xml">
 
27
                <search string="Timesheet All">                 
 
28
                    <field name="date"/>
 
29
                    <field name="user_id"/>
 
30
                    <field name="analytic_id"/>
 
31
                    <field name="userstory"/>                  
 
32
                    <field name="task_id"/>
 
33
                    <field name="name"/>
 
34
                    <field name="period"/>
 
35
                    <field name="invoiceable"/>
 
36
                    <group expand="0" string="Group By...">
 
37
                        <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
 
38
                        <filter string="Summary Work User" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
 
39
                        <filter string="Project" icon="terp-go-month" domain="[]" context="{'group_by':'analytic_id'}"/>
 
40
                        <filter string="User Story" icon="terp-personal" domain="[]" context="{'group_by':'userstory'}"/>          
 
41
                        <filter string="Task" icon="terp-personal" domain="[]" context="{'group_by':'task_id'}"/>
 
42
                        <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period'}"/>
 
43
                        <filter string="Invoiceable" icon="terp-go-month" domain="[]" context="{'group_by':'invoiceable'}"/>
 
44
                    </group>
 
45
                </search>
 
46
            </field>
 
47
        </record>
 
48
        
 
49
        <record model="ir.ui.view" id="view_timesheet_line_all_graph">
 
50
            <field name="name">Timesheet All Graph</field>
 
51
            <field name="model">custom.timesheet.all</field>
 
52
            <field name="arch" type="xml">
 
53
                <graph string="Timesheet" type="bar" orientation="horizontal">
 
54
                    <field name="task_id" group="True"/>
 
55
                    <field name= "unit_amount" operator="+"/>
 
56
                </graph>
 
57
            </field>
 
58
        </record>
 
59
 
 
60
        <record id="act_hr_timesheet_line_all" model="ir.actions.act_window">
 
61
            <field name="name">Timesheet Activities All Report</field>
 
62
            <field name="type">ir.actions.act_window</field>
 
63
            <field name="res_model">custom.timesheet.all</field>
 
64
            <field name="view_type">form</field>
 
65
            <field name="view_mode">tree,form,graph</field>
 
66
            <field name="context">{"search_default_today":1}</field>
 
67
            <field name="view_id" ref="hr_timesheet_line_tree_all"/>
 
68
        </record>
 
69
 
 
70
        <menuitem id="menu_hr_working_hour_all" parent="hr_attendance.menu_hr_time_tracking" action="act_hr_timesheet_line_all" groups="user_story.group_management_reports"/>
 
71
 
 
72
    </data>
 
73
</openerp>