451763fde0cc539d86088cc04b8e64fa3c2d80cc
[odoo/odoo.git] / addons / hr_evaluation / hr_evaluation_view.xml
1 <?xml version="1.0" ?>
2 <openerp>
3         <data>
4                 <record model="ir.ui.view" id="view_hr_evaluation_plan_form">
5                         <field name="name">hr_evaluation.plan.form</field>
6                         <field name="model">hr_evaluation.plan</field>
7                         <field name="type">form</field>
8                         <field name="arch" type="xml">
9                                 <form string="Evaluation Plan">
10                                         <group col="6" colspan="4">
11                                                 <field name="name" select="1"/>
12                                                 <field name="company_id" select="1" widget="selection"/>
13                                                 <field name="active"/>
14                                                 <field name="month_first"/>
15                                                 <field name="month_next"/>
16                                                 <label string="(months)" align="0.0"/>
17                                         </group>
18                                          <notebook colspan="4">
19                                                 <page string="Evaluation Phases">
20                             <field name="phase_ids" nolabel="1" colspan="4"/>
21                         </page>
22                      </notebook>
23                                 </form>
24                         </field>
25                 </record>
26                 <record model="ir.ui.view" id="view_hr_evaluation_plan_tree">
27                         <field name="name">hr_evaluation.plan.form</field>
28                         <field name="model">hr_evaluation.plan</field>
29                         <field name="type">tree</field>
30                         <field name="arch" type="xml">
31                                 <tree string="Evaluation Plan">
32                                         <field name="name"/>
33                                         <field name="month_first"/>
34                                         <field name="month_next"/>
35                                         <field name="company_id"/>
36                                 </tree>
37                         </field>
38                 </record>
39                 <record model="ir.actions.act_window" id="open_view_hr_evaluation_plan_tree">
40                         <field name="res_model">hr_evaluation.plan</field>
41                         <field name="view_type">form</field>
42                         <field name="view_mode">tree,form</field>
43                 </record>
44                 <menuitem name="Evaluations" parent="hr.menu_hr_root" id="menu_eval_hr" sequence="3"/>
45                 <!--menuitem name="HR Responsible" parent="menu_eval_hr" id="menu_resp_hr"/-->
46                 <menuitem
47                         name="Evaluation Plan" parent="menu_eval_hr"
48                         id="menu_open_view_hr_evaluation_plan_tree"
49                         action="open_view_hr_evaluation_plan_tree"/>
50
51                 <record model="ir.ui.view" id="view_hr_evaluation_plan_phase_form">
52                         <field name="name">hr_evaluation.plan.phase.form</field>
53                         <field name="model">hr_evaluation.plan.phase</field>
54                         <field name="type">form</field>
55                         <field name="arch" type="xml">
56                                 <form string="Evaluation Plan Phase">
57                                         <group col="6" colspan="4">
58                                                 <field name="name"/>
59                                                 <field name="wait"/>
60                                                 <field name="sequence"/>
61                                         </group>
62                                         <group col="4" colspan="4">
63                                                 <separator string="Action to Perform" colspan="4"/>
64                                                 <field name="action"/>
65                                                 <field name="survey_id" widget="selection"/>
66                                         </group>
67                                         <group col="4" colspan="4">
68                                                 <group col="4" colspan="2">
69                                                         <separator string="Send to Managers" colspan="2"/>
70                                                         <newline/>
71                                                         <field name="send_answer_manager"/>
72                                                         <newline/>
73                                                         <field name="send_anonymous_manager"/>
74                                                 </group>
75                                                 <group col="4" colspan="2">
76                                                         <separator string="Send to Employees" colspan="2"/>
77                                                         <newline/>
78                                                         <field name="send_answer_employee"/>
79                                                         <newline/>
80                                                         <field name="send_anonymous_employee"/>
81                                                 </group>
82                                         </group>
83                                 </form>
84                         </field>
85                 </record>
86                 <record model="ir.ui.view" id="view_hr_evaluation_plan_phase_tree">
87                         <field name="name">hr_evaluation.plan.phase.form</field>
88                         <field name="model">hr_evaluation.plan.phase</field>
89                         <field name="type">tree</field>
90                         <field name="arch" type="xml">
91                                 <tree string="Evaluation Plan Phase" editable="bottom" >
92                                         <field name="sequence"/>
93                                         <field name="name"/>
94                                         <field name="action"/>
95                                         <field name="survey_id" widget="selection"/>
96                                         <field name="wait"/>
97                                 </tree>
98                         </field>
99                 </record>
100
101                 <record id="hr_hr_employee_view_form" model="ir.ui.view">
102             <field name="name">hr.hr.employee.view.form</field>
103             <field name="model">hr.employee</field>
104             <field name="inherit_id" ref="hr.view_employee_form"/>
105             <field name="arch" type="xml">
106                 <notebook position="inside">
107                     <page string="Evaluation">
108                         <field name="evaluation_plan_id"/>
109                                                 <field name="evaluation_date"/>
110                     </page>
111                 </notebook>
112             </field>
113         </record>
114
115         <record model="ir.ui.view" id="view_hr_evaluation_form">
116                         <field name="name">hr_evaluation.evaluation.form</field>
117                         <field name="model">hr_evaluation.evaluation</field>
118                         <field name="type">form</field>
119                         <field name="arch" type="xml">
120                                 <form string="Evaluation">
121                                         <group col="4" colspan="4">
122                                                 <field name="date" select="1"/>
123                                                 <field name="rating"/>
124                                                 <field name="employee_id" select="1"/>
125                                                 <field name="manager_id" select="1"/>
126                                                 <field name="plan_id"/>
127                                                 <field name="phase_id"/>
128                                         </group>
129                                         <notebook colspan="4">
130                                     <page string="Appraisal">
131                                 <field name="survey_request_ids" nolabel="1" colspan="4"/>
132                                             </page>
133                                             <page string="Action Plan">
134                                 <field name="note_action" colspan="4" nolabel="1"/>
135                                             </page>
136                                             <page string="Summary">
137                                                 <field name="note_summary" colspan="4" nolabel="1"/>
138                                             </page>
139                         </notebook>
140                         <newline/>
141                                         <group col="6" colspan="4">
142                                         <field name="state"/>
143                         <button name="button_plan_in_progress"
144                                         string="Plan In Progress"
145                             states="draft"
146                             type="object"/>
147                     <button name="button_final_validation"
148                                         string="Final Validation"
149                             states="wait"
150                             type="object"/>
151                     <button name="button_done"
152                                         string="Done"
153                             states="progress"
154                             type="object"/>
155                     <button name="button_cancel"
156                                         string="Cancel"
157                             states="draft,wait,progress"
158                             type="object"/>
159                     </group>
160               </form>
161                         </field>
162                 </record>
163                 <record model="ir.ui.view" id="view_hr_evaluation_tree">
164                         <field name="name">hr_evaluation.evaluation.form</field>
165                         <field name="model">hr_evaluation.evaluation</field>
166                         <field name="type">tree</field>
167                         <field name="arch" type="xml">
168                                 <tree string="Evaluation">
169                                         <field name="date"/>
170                                         <field name="employee_id"/>
171                                         <field name="manager_id"/>
172                                 </tree>
173                         </field>
174                 </record>
175                 <record model="ir.actions.act_window" id="open_view_hr_evaluation_tree">
176                         <field name="res_model">hr_evaluation.evaluation</field>
177                         <field name="view_type">form</field>
178                         <field name="view_mode">tree,form</field>
179                 </record>
180                 <menuitem
181                         name="Evaluation" parent="menu_eval_hr"
182                         id="menu_open_view_hr_evaluation_tree"
183                         action="open_view_hr_evaluation_tree"/>
184         </data>
185 </openerp>