5 <record id="view_hr_evaluation_plan_search" model="ir.ui.view">
6 <field name="name">hr_evaluation.plan.search</field>
7 <field name="model">hr_evaluation.plan</field>
8 <field name="type">search</field>
9 <field name="arch" type="xml">
10 <search string="Search Evaluation Plan">
11 <group col='15' colspan='4'>
13 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
16 <group expand="0" string="Group By..." groups="base.group_multi_company">
17 <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}"/>
23 <record model="ir.ui.view" id="view_hr_evaluation_plan_form">
24 <field name="name">hr_evaluation.plan.form</field>
25 <field name="model">hr_evaluation.plan</field>
26 <field name="type">form</field>
27 <field name="arch" type="xml">
28 <form string="Evaluation Plan">
29 <group col="6" colspan="4">
30 <field name="name" select="1"/>
31 <field name="company_id" select="1" widget="selection" groups="base.group_multi_company"/>
32 <field name="active"/>
33 <field name="month_first"/>
34 <field name="month_next"/>
35 <label string="(months)" align="0.0"/>
37 <notebook colspan="4">
38 <page string="Evaluation Phases">
39 <field name="phase_ids" nolabel="1" colspan="4"/>
45 <record model="ir.ui.view" id="view_hr_evaluation_plan_tree">
46 <field name="name">hr_evaluation.plan.form</field>
47 <field name="model">hr_evaluation.plan</field>
48 <field name="type">tree</field>
49 <field name="arch" type="xml">
50 <tree string="Evaluation Plan">
52 <field name="month_first"/>
53 <field name="month_next"/>
54 <field name="company_id" groups="base.group_multi_company"/>
58 <record model="ir.actions.act_window" id="open_view_hr_evaluation_plan_tree">
59 <field name="name">Evaluation Plans</field>
60 <field name="res_model">hr_evaluation.plan</field>
61 <field name="view_type">form</field>
62 <field name="view_mode">tree,form</field>
64 <menuitem name="Evaluations" parent="hr.menu_hr_root" id="menu_eval_hr" sequence="6"/>
67 name="Periodic Evaluations" parent="hr.menu_hr_configuration" id="menu_eval_hr_config" sequence="3"/>
69 parent="menu_eval_hr_config"
70 id="menu_open_view_hr_evaluation_plan_tree"
71 action="open_view_hr_evaluation_plan_tree"/>
73 <record model="ir.ui.view" id="view_hr_evaluation_plan_phase_form">
74 <field name="name">hr_evaluation.plan.phase.form</field>
75 <field name="model">hr_evaluation.plan.phase</field>
76 <field name="type">form</field>
77 <field name="arch" type="xml">
78 <form string="Evaluation Plan Phase">
80 <page string="General">
81 <field name="plan_id" invisible="1"/>
82 <group col="6" colspan="4">
85 <field name="sequence"/>
87 <group col="4" colspan="4">
88 <separator string="Action to Perform" colspan="4"/>
89 <field name="action"/>
90 <field name="survey_id"/>
92 <group col="4" colspan="4">
93 <group col="4" colspan="2">
94 <separator string="Send to Managers" colspan="2"/>
96 <field name="send_answer_manager"/>
98 <field name="send_anonymous_manager"/>
100 <group col="4" colspan="2">
101 <separator string="Send to Employees" colspan="2"/>
103 <field name="send_answer_employee"/>
105 <field name="send_anonymous_employee"/>
109 <page string="Mail Settings">
110 <field name="mail_feature" colspan="4"/>
112 <separator string="Mail Body"/>
114 <field name="mail_body" colspan="4" nolabel="1"/>
116 <separator string="Legend" colspan ="4"/>
117 <label string=" (employee_name)s: Partner name" colspan="2"/>
118 <label string="(user_signature)s: User name" colspan="2"/>
119 <label string="(date)s: Current Date" colspan="2"/>
120 <label string="(eval_name)s:Evaluation Name" colspan="2"/>
126 <record model="ir.ui.view" id="view_hr_evaluation_plan_phase_tree">
127 <field name="name">hr_evaluation.plan.phase.form</field>
128 <field name="model">hr_evaluation.plan.phase</field>
129 <field name="type">tree</field>
130 <field name="arch" type="xml">
131 <tree string="Evaluation Plan Phase" editable="bottom" >
132 <field name="sequence"/>
134 <field name="action"/>
135 <field name="survey_id"/>
141 <record id="hr_hr_employee_view_form" model="ir.ui.view">
142 <field name="name">hr.hr.employee.view.form</field>
143 <field name="model">hr.employee</field>
144 <field name="inherit_id" ref="hr.view_employee_form"/>
145 <field name="arch" type="xml">
146 <notebook position="inside">
147 <page string="Evaluation">
148 <field name="evaluation_plan_id" on_change="onchange_evaluation_plan_id(evaluation_plan_id, evaluation_date)"/>
149 <field name="evaluation_date"/>
155 <record model="ir.ui.view" id="view_hr_evaluation_form">
156 <field name="name">hr_evaluation.evaluation.form</field>
157 <field name="model">hr_evaluation.evaluation</field>
158 <field name="type">form</field>
159 <field name="arch" type="xml">
160 <form string="Evaluation">
161 <group col="4" colspan="3">
162 <separator string="Evaluation Data" colspan="4"/>
163 <field name="employee_id" on_change="onchange_employee_id(employee_id)"/>
164 <field name="plan_id"/>
166 <field name="progress" widget="progressbar"/>
168 <group col="2" colspan="1">
169 <separator string="Ending Summary" colspan="2"/>
170 <field name="rating" attrs="{'readonly':[('state','<>','progress')],'required':[('state','=','progress')]}"/>
171 <field name="date_close" readonly="1"/>
173 <notebook colspan="4">
174 <page string="Appraisal">
175 <field name="survey_request_ids" context="{'phase_id': phase_id}" nolabel="1" colspan="4" widget="one2many"/>
177 <page string="Internal Notes">
178 <field name="note_action" colspan="4" nolabel="1"
179 groups="hr.group_hr_manager"/>
181 <page string="Public Notes">
182 <field name="note_summary" colspan="4" nolabel="1"/>
186 <group col="6" colspan="4">
187 <field name="state"/>
188 <button name="button_plan_in_progress"
189 string="Start Evaluation"
193 <button name="button_final_validation"
194 string="Final Validation"
198 <button name="button_done"
203 <button name="button_cancel"
205 states="draft,wait,progress"
212 <record model="ir.ui.view" id="view_hr_evaluation_tree">
213 <field name="name">hr_evaluation.evaluation.tree</field>
214 <field name="model">hr_evaluation.evaluation</field>
215 <field name="type">tree</field>
216 <field name="arch" type="xml">
217 <tree string="Evaluation">
218 <!--field name="create_date"/-->
219 <field name="employee_id"/>
220 <field name="plan_id"/>
222 <field name="progress" widget="progressbar"/>
223 <field name="rating"/>
224 <field name="state"/>
228 <record model="ir.ui.view" id="view_hr_evaluation_graph">
229 <field name="name">hr_evaluation.evaluation.graph</field>
230 <field name="model">hr_evaluation.evaluation</field>
231 <field name="type">graph</field>
232 <field name="arch" type="xml">
233 <graph string="Evaluation" type="bar">
234 <field name="employee_id"/>
235 <field name="progress" operator="+"/>
239 <record id="hr_evaluation.evaluation_search" model="ir.ui.view">
240 <field name="name">hr_evaluation.evaluation_search</field>
241 <field name="model">hr_evaluation.evaluation</field>
242 <field name="type">search</field>
243 <field name="arch" type="xml">
244 <search string="Search Evaluation">
245 <group col='10' colspan='4'>
246 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]"/>
247 <filter icon="terp-check" string="In progress" domain="[('state','=','wait')]"/>
248 <filter icon="terp-dialog-close" string="Final Step" domain="[('state','=','progress')]"/>
249 <separator orientation="vertical"/>
250 <filter icon="terp-go-week" string="7 Days"
251 help="Evaluations to close within the next 7 days"
252 domain="[('date','>=',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]"
254 <filter icon="terp-gnome-cpu-frequency-applet+" string="Overpassed"
255 help="Evaluations that overpassed the deadline"
256 domain="[('date','>=',(datetime.date.today()))]"
259 <separator orientation="vertical"/>
260 <field name="employee_id" widget="selection" select="1"/>
261 <field name="plan_id" widget="selection" select="1"/>
264 <group expand='0' string='Group by...'>
265 <filter string='Employee' icon="terp-personal" domain="[]" context="{'group_by' : 'employee_id'}" />
266 <filter string='Plan' icon="terp-stock_align_left_24" domain="[]" context="{'group_by' : 'plan_id'}" />
267 <filter string='State' icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by' : 'state'}" />
268 <separator orientation="vertical"/>
269 <filter string='Date' icon="terp-go-month" domain="[]" context="{'group_by' : 'date'}" />
275 <record model="ir.actions.act_window" id="open_view_hr_evaluation_tree">
276 <field name="res_model">hr_evaluation.evaluation</field>
277 <field name="view_type">form</field>
278 <field name="view_mode">tree,form,graph</field>
279 <field name="search_view_id" ref="hr_evaluation.evaluation_search"/>
282 name="Evaluation" parent="menu_eval_hr"
283 id="menu_open_view_hr_evaluation_tree"
284 action="open_view_hr_evaluation_tree"/>
286 <record model="ir.ui.view" id="view_hr_evaluation_interview_form">
287 <field name="name">hr_evaluation.interview.form</field>
288 <field name="model">hr.evaluation.interview</field>
289 <field name="type">form</field>
290 <field name="arch" type="xml">
291 <form string="Interview Evaluation">
292 <group col="4" colspan="4">
293 <field name="survey_id" colspan="3"/>
295 <button name="%(survey.action_view_survey_question_message)d" string="Interview Question" type="action" states="waiting_answer,done,cancel"
296 icon="gtk-execute" context="{'survey_id': survey_id, 'response_id': [response], 'response_no':0, 'active' : response,'request' : True, 'object' : 'hr.evaluation.interview', 'cur_id' : active_id}" attrs="{'readonly':[('survey_id','=',False)]}"/>
297 <button name="%(survey.survey_browse_response)d" string="Print Interview" type="action" states="done"
298 icon="gtk-print" context="{'survey_id': survey_id, 'response_id' : [response], 'response_no':0,}" attrs="{'readonly':[('response','=',False)]}" />
301 <group col="4" colspan="4">
302 <field name="date_deadline"/>
303 <field name="response" readonly="1"/>
304 <field name="user_to_review_id"/>
305 <field name="user_id" string="Interviewer"/>
308 <separator string="State" colspan="4"/>
309 <group colspan="4" col="6">
310 <field name="state"/>
311 <!--<button name="survey_req_draft" string="Set to Draft" states="cancel,done" type="object" icon="gtk-new"/>
312 <button name="survey_req_waiting_answer" string="Waiting Answer" states="draft" type="object" icon="gtk-new"/>
313 <button name="survey_req_done" string="Done" states="waiting_answer" type="object" icon="gtk-ok"/>
314 <button name="survey_req_cancel" string="Cancelled" states="waiting_answer" type="object" icon="gtk-cancel"/>-->
320 <record model="ir.ui.view" id="view_hr_evaluation_interview_tree">
321 <field name="name">hr_evaluation.interview.tree</field>
322 <field name="model">hr.evaluation.interview</field>
323 <field name="type">tree</field>
324 <field name="arch" type="xml">
325 <tree string="Interview Evaluation">
326 <field name="date_deadline"/>
327 <field name="survey_id"/>
328 <field name="user_id" string="Interviewer"/>
329 <field name="user_to_review_id"/>
330 <field name="response" readonly="1" invisible="True"/>
331 <button name="%(survey.action_view_survey_question_message)d" string="Interview Question" type="action" states="waiting_answer,done,cancel"
332 icon="gtk-execute" context="{'survey_id': survey_id, 'response_id': [response], 'response_no':0, 'active' : response, 'request' : True, 'object' : 'hr.evaluation.interview', 'cur_id' : active_id}" attrs="{'readonly':[('survey_id','=',False)]}"/>
333 <button name="%(survey.survey_browse_response)d" string="Print Interview" type="action" states="done"
334 icon="gtk-print" context="{'survey_id': survey_id, 'response_id' : [response], 'response_no':0}" attrs="{'readonly':[('response','=',False)]}" />
335 <field name="state"/>
340 <record id="view_hr_evaluation_interview_search" model="ir.ui.view">
341 <field name="name">view_hr_evaluation_interview_search</field>
342 <field name="model">hr.evaluation.interview</field>
343 <field name="type">search</field>
344 <field name="arch" type="xml">
345 <search string="Search Evaluation">
346 <group col='10' colspan='4'>
347 <filter icon="terp-gtk-go-back-rtl" string="To Do" name="todo" domain="[('state','=','waiting_answer')]"/>
348 <separator orientation="vertical"/>
349 <separator orientation="vertical"/>
350 <filter icon="terp-gnome-cpu-frequency-applet+" string="Late" domain="[('date_deadline','<',current_date)]"/>
351 <separator orientation="vertical"/>
352 <field name="user_to_review_id" widget="selection"/>
353 <field name="user_id" string="Interviewer" widget="selection"/>
359 <record model="ir.actions.act_window" id="action_hr_evaluation_interview_tree">
360 <field name="res_model">hr.evaluation.interview</field>
361 <field name="view_type">form</field>
362 <field name="view_mode">tree,form</field>
363 <field name="domain">[('is_evaluation' ,'=', True)]</field>
364 <field name="context">{"search_default_todo":1,"search_default_user_id":uid}</field>
365 <field name="search_view_id" ref="view_hr_evaluation_interview_search"/>
369 name="Interview Requests" parent="menu_eval_hr"
370 id="menu_open_hr_evaluation_interview_requests"
371 action="action_hr_evaluation_interview_tree"/>
373 <menuitem name="Evaluation Reminders" parent="menu_eval_hr"
374 id="menu_eval_send_mail"
375 action="action_hr_evaluation_send_mail"
378 <!-- Evaluation Interviews Button on Employee Form -->
379 <act_window domain="[('user_to_review_id', '=', active_id)]" id="act_hr_employee_2_hr__evaluation_interview" name="Evaluation Interviews" res_model="hr.evaluation.interview" src_model="hr.employee"/>