~zaber/openobject-addons/document-ftp-ports

« back to all changes in this revision

Viewing changes to hr_timesheet/hr_timesheet_view.xml

  • Committer: stw
  • Date: 2008-06-29 08:26:07 UTC
  • Revision ID: stw-c7b064849fe1f51bf264dd2de76920ded909d158
reindent all xml files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" ?>
 
1
<?xml version='1.0'?>
2
2
<terp>
3
 
        <data>
4
 
                <record model="ir.ui.view" id="hr_timesheet_line_tree">
5
 
                        <field name="name">hr.analytic.timesheet.tree</field>
6
 
                        <field name="model">hr.analytic.timesheet</field>
7
 
                        <field name="type">tree</field>
8
 
                        <field name="arch" type="xml">
9
 
                                <tree string="Timesheet Line" editable="bottom">
10
 
                                        <field name="user_id" required="1" on_change="on_change_user_id(user_id)"/>
11
 
                                        <field name="date" />
12
 
                                        <field name="account_id"  domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]"/>
13
 
                    <field name="name" />
14
 
                                        <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" sum="Total time"/>
15
 
                                        <field name="product_id" required="1"/>
16
 
                                        <field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" />
17
 
                                        <field name="amount"  sum="Total cost"/>
18
 
                                        <field name="general_account_id"/>
19
 
                                </tree>
20
 
                        </field>
21
 
                </record>
22
 
                <record model="ir.ui.view" id="hr_timesheet_line_form">
23
 
                        <field name="name">hr.analytic.timesheet.form</field>
24
 
                        <field name="model">hr.analytic.timesheet</field>
25
 
                        <field name="type">form</field>
26
 
                        <field name="arch" type="xml">
27
 
                                <form string="Timesheet Lines">
28
 
                                        <field name="name" colspan="4"/>
29
 
                                        <field name="user_id" select="1" required="1" on_change="on_change_user_id(user_id)"/>
30
 
                                        <field name="date" select="1"/>
31
 
                                        <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" />
32
 
                                        <newline/>
33
 
                                        <field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" required="1"/>
34
 
                                        <field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" />
35
 
 
36
 
                                        <field name="account_id"  domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" select="1"/>
37
 
                                        <field name="amount"  select="2"/>
38
 
                    <field name="general_account_id"  select="2"/>
39
 
                    <field name="journal_id"/>
40
 
                                </form>
41
 
                        </field>
42
 
                </record>
43
 
 
44
 
                <record model="ir.actions.act_window" id="act_hr_timesheet_line_today_form">
45
 
                        <field name="name">Hours Encoding</field>
46
 
                        <field name="type">ir.actions.act_window</field>
47
 
                        <field name="res_model">hr.analytic.timesheet</field>
48
 
                        <field name="view_type">form</field>
49
 
                        <field name="view_id" ref="hr_timesheet_line_tree" />
50
 
                </record>
51
 
        <menuitem name="Human Resources/Hours Encoding" id="menu_act_hr_timesheet_line_today_form" action="act_hr_timesheet_line_today_form" />
52
 
 
53
 
                <record model="ir.actions.act_window" id="act_hr_timesheet_line_me_today_form">
54
 
                        <field name="name">My works of the day</field>
55
 
                        <field name="type">ir.actions.act_window</field>
56
 
                        <field name="res_model">hr.analytic.timesheet</field>
57
 
                        <field name="view_type">form</field>
58
 
                        <field name="view_mode">tree,form</field>
59
 
            <field name="domain">[('date', '=', time.strftime('%Y-%m-%d')),('user_id','=',uid)]</field>
60
 
                </record>
61
 
                <menuitem name="Human Resources/Hours Encoding/For me/My Works of the Day" id="menu_act_hr_timesheet_line_me_today_form" action="act_hr_timesheet_line_me_today_form" />
62
 
 
63
 
                <record model="ir.actions.act_window" id="act_hr_timesheet_line_me_all_form">
64
 
                        <field name="name">All my works</field>
65
 
                        <field name="type">ir.actions.act_window</field>
66
 
                        <field name="res_model">hr.analytic.timesheet</field>
67
 
                        <field name="view_type">form</field>
68
 
                        <field name="view_mode">tree,form</field>
69
 
            <field name="domain">[('user_id','=',uid)]</field>
70
 
                </record>
71
 
                <menuitem name="Human Resources/Hours Encoding/For me/All My Works" id="menu_act_hr_timesheet_line_me_all_form" action="act_hr_timesheet_line_me_all_form" />
72
 
 
73
 
                <record model="ir.actions.act_window" id="act_hr_timesheet_line_evry1_today_form">
74
 
                        <field name="name">All works of the day</field>
75
 
                        <field name="type">ir.actions.act_window</field>
76
 
                        <field name="res_model">hr.analytic.timesheet</field>
77
 
                        <field name="view_type">form</field>
78
 
                        <field name="view_mode">tree,form</field>
79
 
            <field name="domain">[('date', '=', time.strftime('%Y-%m-%d'))]</field>
80
 
                </record>
81
 
                <menuitem name="Human Resources/Hours Encoding/For Everyone/All Works of the Day" id="menu_act_hr_timesheet_line_evry1_today_form" action="act_hr_timesheet_line_evry1_today_form" />
82
 
                
83
 
                <record model="ir.actions.act_window" id="act_hr_timesheet_line_evry1_all_form">
84
 
                        <field name="name">All works</field>
85
 
                        <field name="type">ir.actions.act_window</field>
86
 
                        <field name="res_model">hr.analytic.timesheet</field>
87
 
                        <field name="view_type">form</field>
88
 
                        <field name="view_mode">tree,form</field>
89
 
                </record>
90
 
                <menuitem name="Human Resources/Hours Encoding/For Everyone/All Works" id="menu_act_hr_timesheet_line_evry1_all_form" action="act_hr_timesheet_line_evry1_all_form" />
91
 
 
92
 
                <record model="ir.ui.view" id="hr_timesheet_employee_extd_form">
93
 
                        <field name="name">hr.timesheet.employee.extd_form</field>
94
 
                        <field name="model">hr.employee</field>
95
 
                        <field name="inherit_id" ref="hr.view_employee_form" />
96
 
                        <field name="arch" type="xml">
97
 
                                <field name="notes" position="after">
98
 
                                        <field name="product_id" />
99
 
                                        <field name="journal_id" />
100
 
                                </field>
101
 
                        </field>
102
 
                </record>
103
 
        </data>
 
3
    <data>
 
4
        <record id='hr_timesheet_line_tree' model='ir.ui.view'>
 
5
            <field name='name'>hr.analytic.timesheet.tree</field>
 
6
            <field name='model'>hr.analytic.timesheet</field>
 
7
            <field name='type'>tree</field>
 
8
            <field name='arch' type='xml'>
 
9
                <tree editable='bottom' string='Timesheet Line'>
 
10
                    <field name='user_id' on_change='on_change_user_id(user_id)' required='1'/>
 
11
                    <field name='date'/>
 
12
                    <field name='account_id' domain='[(&apos;type&apos;,&apos;=&apos;,&apos;normal&apos;),(&apos;state&apos;, &apos;&lt;&gt;&apos;, &apos;close&apos;)]'/>
 
13
                    <field name='name'/>
 
14
                    <field name='unit_amount' sum='Total time' on_change='on_change_unit_amount(product_id, unit_amount, product_uom_id)'/>
 
15
                    <field name='product_id' required='1'/>
 
16
                    <field name='product_uom_id' on_change='on_change_unit_amount(product_id, unit_amount, product_uom_id)'/>
 
17
                    <field name='amount' sum='Total cost'/>
 
18
                    <field name='general_account_id'/>
 
19
                </tree>
 
20
            </field>
 
21
        </record>
 
22
        <record id='hr_timesheet_line_form' model='ir.ui.view'>
 
23
            <field name='name'>hr.analytic.timesheet.form</field>
 
24
            <field name='model'>hr.analytic.timesheet</field>
 
25
            <field name='type'>form</field>
 
26
            <field name='arch' type='xml'>
 
27
                <form string='Timesheet Lines'>
 
28
                    <field name='name' colspan='4'/>
 
29
                    <field name='user_id' on_change='on_change_user_id(user_id)' required='1' select='1'/>
 
30
                    <field name='date' select='1'/>
 
31
                    <field name='unit_amount' on_change='on_change_unit_amount(product_id, unit_amount, product_uom_id)'/>
 
32
                    <newline/>
 
33
                    <field name='product_id' on_change='on_change_unit_amount(product_id, unit_amount, product_uom_id)' required='1'/>
 
34
                    <field name='product_uom_id' on_change='on_change_unit_amount(product_id, unit_amount, product_uom_id)'/>
 
35
                    
 
36
                    <field name='account_id' domain='[(&apos;type&apos;,&apos;=&apos;,&apos;normal&apos;),(&apos;state&apos;, &apos;&lt;&gt;&apos;, &apos;close&apos;)]' select='1'/>
 
37
                    <field name='amount' select='2'/>
 
38
                    <field name='general_account_id' select='2'/>
 
39
                    <field name='journal_id'/>
 
40
                </form>
 
41
            </field>
 
42
        </record>
 
43
        
 
44
        <record id='act_hr_timesheet_line_today_form' model='ir.actions.act_window'>
 
45
            <field name='name'>Hours Encoding</field>
 
46
            <field name='type'>ir.actions.act_window</field>
 
47
            <field name='res_model'>hr.analytic.timesheet</field>
 
48
            <field name='view_type'>form</field>
 
49
            <field name='view_id' ref='hr_timesheet_line_tree'/>
 
50
        </record>
 
51
        <menuitem name='Human Resources/Hours Encoding' action='act_hr_timesheet_line_today_form' id='menu_act_hr_timesheet_line_today_form'/>
 
52
        
 
53
        <record id='act_hr_timesheet_line_me_today_form' model='ir.actions.act_window'>
 
54
            <field name='name'>My works of the day</field>
 
55
            <field name='type'>ir.actions.act_window</field>
 
56
            <field name='res_model'>hr.analytic.timesheet</field>
 
57
            <field name='view_type'>form</field>
 
58
            <field name='view_mode'>tree,form</field>
 
59
            <field name='domain'>[('date', '=', time.strftime('%Y-%m-%d')),('user_id','=',uid)]</field>
 
60
        </record>
 
61
        <menuitem name='Human Resources/Hours Encoding/For me/My Works of the Day' action='act_hr_timesheet_line_me_today_form' id='menu_act_hr_timesheet_line_me_today_form'/>
 
62
        
 
63
        <record id='act_hr_timesheet_line_me_all_form' model='ir.actions.act_window'>
 
64
            <field name='name'>All my works</field>
 
65
            <field name='type'>ir.actions.act_window</field>
 
66
            <field name='res_model'>hr.analytic.timesheet</field>
 
67
            <field name='view_type'>form</field>
 
68
            <field name='view_mode'>tree,form</field>
 
69
            <field name='domain'>[('user_id','=',uid)]</field>
 
70
        </record>
 
71
        <menuitem name='Human Resources/Hours Encoding/For me/All My Works' action='act_hr_timesheet_line_me_all_form' id='menu_act_hr_timesheet_line_me_all_form'/>
 
72
        
 
73
        <record id='act_hr_timesheet_line_evry1_today_form' model='ir.actions.act_window'>
 
74
            <field name='name'>All works of the day</field>
 
75
            <field name='type'>ir.actions.act_window</field>
 
76
            <field name='res_model'>hr.analytic.timesheet</field>
 
77
            <field name='view_type'>form</field>
 
78
            <field name='view_mode'>tree,form</field>
 
79
            <field name='domain'>[('date', '=', time.strftime('%Y-%m-%d'))]</field>
 
80
        </record>
 
81
        <menuitem name='Human Resources/Hours Encoding/For Everyone/All Works of the Day' action='act_hr_timesheet_line_evry1_today_form' id='menu_act_hr_timesheet_line_evry1_today_form'/>
 
82
        
 
83
        <record id='act_hr_timesheet_line_evry1_all_form' model='ir.actions.act_window'>
 
84
            <field name='name'>All works</field>
 
85
            <field name='type'>ir.actions.act_window</field>
 
86
            <field name='res_model'>hr.analytic.timesheet</field>
 
87
            <field name='view_type'>form</field>
 
88
            <field name='view_mode'>tree,form</field>
 
89
        </record>
 
90
        <menuitem name='Human Resources/Hours Encoding/For Everyone/All Works' action='act_hr_timesheet_line_evry1_all_form' id='menu_act_hr_timesheet_line_evry1_all_form'/>
 
91
        
 
92
        <record id='hr_timesheet_employee_extd_form' model='ir.ui.view'>
 
93
            <field name='name'>hr.timesheet.employee.extd_form</field>
 
94
            <field name='model'>hr.employee</field>
 
95
            <field name='inherit_id' ref='hr.view_employee_form'/>
 
96
            <field name='arch' type='xml'>
 
97
                <field name='notes' position='after'>
 
98
                    <field name='product_id'/>
 
99
                    <field name='journal_id'/>
 
100
                </field>
 
101
            </field>
 
102
        </record>
 
103
    </data>
104
104
</terp>