~technofluid-team/openobject-addons/technofluid_multiple_installations

« back to all changes in this revision

Viewing changes to hr_timesheet/hr_timesheet_view.xml

  • Committer: pinky
  • Date: 2006-12-07 13:41:40 UTC
  • Revision ID: pinky-dedd7f8a42bd4557112a0513082691b8590ad6cc
New trunk

Show diffs side-by-side

added added

removed removed

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