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="Appraisal Plan">
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="Appraisal Plan">
29 <group col="8" 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="month_first"/>
33 <field name="month_next"/>
35 <field name="active"/>
37 <notebook colspan="4">
38 <page string="Appraisal 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="Appraisal 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">Appraisal 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>
65 <menuitem name="Appraisal" parent="hr.menu_hr_root" id="menu_eval_hr" sequence="25"/>
66 <menuitem name="Periodic Appraisal" parent="hr.menu_hr_configuration" id="menu_eval_hr_config" sequence="4"/>
67 <menuitem parent="hr.menu_hr_configuration" id="menu_open_view_hr_evaluation_plan_tree"
68 action="open_view_hr_evaluation_plan_tree" sequence="15"/>
70 <record model="ir.ui.view" id="view_hr_evaluation_plan_phase_form">
71 <field name="name">hr_evaluation.plan.phase.form</field>
72 <field name="model">hr_evaluation.plan.phase</field>
73 <field name="type">form</field>
74 <field name="arch" type="xml">
75 <form string="Appraisal Plan Phases">
77 <page string="General">
78 <field name="plan_id" invisible="1"/>
79 <group col="8" colspan="4">
82 <field name="sequence"/>
84 <group col="4" colspan="4">
85 <separator string="Action to Perform" colspan="4"/>
86 <field name="action"/>
87 <field name="survey_id" domain="[('state','=','open')]"/>
89 <group col="4" colspan="4">
90 <group col="4" colspan="2">
91 <separator string="Send to Managers" colspan="2"/>
93 <field name="send_answer_manager"/>
95 <field name="send_anonymous_manager"/>
97 <group col="4" colspan="2">
98 <separator string="Send to Employees" colspan="2"/>
100 <field name="send_answer_employee"/>
102 <field name="send_anonymous_employee"/>
106 <page string="Mail Settings">
107 <field name="mail_feature" colspan="4"/>
109 <separator string="Mail Body"/>
111 <field name="mail_body" colspan="4" nolabel="1"/>
113 <separator string="Legend" colspan ="4"/>
114 <label string=" (employee_name)s: Partner name" colspan="2"/>
115 <label string="(user_signature)s: User name" colspan="2"/>
116 <label string="(date)s: Current Date" colspan="2"/>
117 <label string="(eval_name)s:Appraisal Name" colspan="2"/>
123 <record model="ir.ui.view" id="view_hr_evaluation_plan_phase_tree">
124 <field name="name">hr_evaluation.plan.phase.form</field>
125 <field name="model">hr_evaluation.plan.phase</field>
126 <field name="type">tree</field>
127 <field name="arch" type="xml">
128 <tree string="Appraisal Plan Phases" editable="bottom" >
129 <field name="sequence"/>
131 <field name="action"/>
132 <field name="survey_id"/>
138 <record id="hr_hr_employee_view_form" model="ir.ui.view">
139 <field name="name">hr.hr.employee.view.form</field>
140 <field name="model">hr.employee</field>
141 <field name="inherit_id" ref="hr.view_employee_form"/>
142 <field name="arch" type="xml">
143 <page string="Notes" position="before">
144 <page string="Appraisal" groups="base.group_hr_user">
145 <field name="evaluation_plan_id" on_change="onchange_evaluation_plan_id(evaluation_plan_id, evaluation_date)"/>
146 <field name="evaluation_date"/>
152 <record model="ir.ui.view" id="view_hr_evaluation_form">
153 <field name="name">hr_evaluation.evaluation.form</field>
154 <field name="model">hr_evaluation.evaluation</field>
155 <field name="type">form</field>
156 <field name="arch" type="xml">
157 <form layout="manual">
158 <div class="oe_form_topbar">
159 <button name="button_plan_in_progress" string="Start Appraisal" states="draft" type="object"/>
160 <button name="button_final_validation" string="Validate Appraisal" states="wait" type="object"/>
161 <button name="button_done" string="Done" states="progress" type="object"/>
162 <button name="button_draft" string="Reset to Draft" states="cancel" type="object"/>
163 <button name="button_cancel" string="Cancel" states="draft,wait,progress" type="object"/>
164 <div class="oe_right">
165 <field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,wait,done" statusbar_colors='{"progress":"blue"}'/>
167 <div class="oe_clear"/>
169 <sheet string="Appraisal" layout="auto">
170 <group col="4" colspan="3">
171 <separator string="Appraisal Data" colspan="4"/>
172 <field name="employee_id" on_change="onchange_employee_id(employee_id)"/>
173 <field name="plan_id"/>
175 <field name="progress" widget="progressbar"/>
177 <group col="2" colspan="1">
178 <separator string="Ending Summary" colspan="2"/>
179 <field name="rating" attrs="{'readonly':[('state','<>','progress')],'required':[('state','=','progress')]}"/>
180 <field name="date_close" readonly="1"/>
182 <notebook colspan="4">
183 <page string="Appraisal">
184 <field name="survey_request_ids" nolabel="1" colspan="4" widget="one2many">
185 <form string="Interview Appraisal">
186 <group col="4" colspan="4">
187 <field name="survey_id"/>
188 <group col="2" colspan="2">
189 <button name="%(survey.action_view_survey_question_message)d" string="Interview Question" type="action" states="waiting_answer,done,cancel" 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)]}"/>
190 <button name="%(survey.survey_browse_response)d" string="Print Interview" type="action" states="done" icon="gtk-print" context="{'survey_id': survey_id, 'response_id' : [response], 'response_no':0,}" attrs="{'readonly':[('response','=',False)]}" />
192 <field name="date_deadline"/>
193 <field name="response" readonly="1"/>
194 <field name="user_to_review_id"/>
195 <field name="user_id" string="Interviewer"/>
198 <separator string="Status" colspan="4"/>
199 <group colspan="4" col="6">
200 <field name="state"/>
205 <page string="Internal Notes">
206 <field name="note_action" colspan="4" nolabel="1"
207 groups="base.group_hr_manager"/>
209 <page string="Public Notes">
210 <field name="note_summary" colspan="4" nolabel="1"/>
218 <record model="ir.ui.view" id="view_hr_evaluation_tree">
219 <field name="name">hr_evaluation.evaluation.tree</field>
220 <field name="model">hr_evaluation.evaluation</field>
221 <field name="type">tree</field>
222 <field name="arch" type="xml">
223 <tree colors="blue:state == 'draft';black:state in ('wait','progress');gray:state in('done','cancel')" string="Appraisal">
224 <field name="employee_id"/>
225 <field name="plan_id"/>
227 <!--field name="progress" widget="progressbar"/-->
228 <field name="rating"/>
229 <field name="state"/>
234 <record model="ir.ui.view" id="view_hr_evaluation_graph">
235 <field name="name">hr_evaluation.evaluation.graph</field>
236 <field name="model">hr_evaluation.evaluation</field>
237 <field name="type">graph</field>
238 <field name="arch" type="xml">
239 <graph string="Appraisal" type="bar">
240 <field name="employee_id"/>
241 <field name="progress" operator="+"/>
246 <record id="hr_evaluation.evaluation_search" model="ir.ui.view">
247 <field name="name">hr_evaluation.evaluation_search</field>
248 <field name="model">hr_evaluation.evaluation</field>
249 <field name="type">search</field>
250 <field name="arch" type="xml">
251 <search string="Search Appraisal">
253 <filter icon="terp-check" string="Pending" domain="[('state','=','wait')]" help="Appraisal that are in Plan In Progress state"/>
254 <filter icon="terp-camera_test" string="In progress" domain="[('state','=','progress')]" help="Appraisal that are in waiting appreciation state"/>
255 <separator orientation="vertical"/>
256 <filter icon="terp-go-week" string="7 Days" help="Appraisal to close within the next 7 days"
257 domain="[('date', '>=', (datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]" />
258 <separator orientation="vertical"/>
259 <filter icon="terp-gnome-cpu-frequency-applet+" string="Late"
260 help="Appraisal that overpassed the deadline" domain="[('date','<=',(datetime.date.today()).strftime('%%Y-%%m-%%d'))]" />
261 <separator orientation="vertical"/>
262 <field name="employee_id" />
263 <field name="plan_id" widget="selection" />
266 <group expand='0' string='Group by...'>
267 <filter string='Employee' icon="terp-personal" domain="[]" context="{'group_by' : 'employee_id'}" />
268 <separator orientation="vertical"/>
269 <filter string='Plan' icon="terp-stock_align_left_24" domain="[]" context="{'group_by' : 'plan_id'}" />
270 <filter string='Status' icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by' : 'state'}" />
271 <separator orientation="vertical"/>
272 <filter string='Date' icon="terp-go-month" domain="[]" context="{'group_by' : 'date'}" />
278 <record model="ir.actions.act_window" id="open_view_hr_evaluation_tree">
279 <field name="name">Appraisal</field>
280 <field name="res_model">hr_evaluation.evaluation</field>
281 <field name="view_type">form</field>
282 <field name="view_mode">tree,form,graph</field>
283 <field name="search_view_id" ref="hr_evaluation.evaluation_search"/>
284 <field name="help">Each employee may be assigned an Appraisal Plan. Such a plan defines the frequency and the way you manage your periodic personnel evaluation. You will be able to define steps and attach interviews to each step. OpenERP manages all kind of evaluations: bottom-up, top-down, self-evaluation and final evaluation by the manager.</field>
287 <menuitem name="Appraisals" parent="menu_eval_hr" id="menu_open_view_hr_evaluation_tree"
288 action="open_view_hr_evaluation_tree" groups="base.group_hr_user"/>
290 <record model="ir.ui.view" id="view_hr_evaluation_interview_form">
291 <field name="name">hr_evaluation.interview.form</field>
292 <field name="model">hr.evaluation.interview</field>
293 <field name="type">form</field>
294 <field name="arch" type="xml">
295 <form string="Interview Appraisal">
296 <group col="4" colspan="4">
297 <field name="survey_id"/>
298 <field name="evaluation_id"/>
299 <group col="2" colspan="2">
300 <button name="%(survey.action_view_survey_question_message)d" string="Interview Question" type="action" states="waiting_answer,done,cancel" 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)]}"/>
301 <button name="%(survey.survey_browse_response)d" string="Print Interview" type="action" states="done" icon="gtk-print" context="{'survey_id': survey_id, 'response_id' : [response], 'response_no':0,}" attrs="{'readonly':[('response','=',False)]}" />
303 <field name="date_deadline"/>
304 <field name="response" readonly="1"/>
305 <field name="user_to_review_id"/>
306 <field name="user_id" string="Interviewer"/>
307 <group col="2" colspan="2">
308 <button string="Send Reminder Email"
309 name="%(mail.action_email_compose_message_wizard)d"
310 icon="terp-mail-message-new" type="action"
311 states="waiting_answer"/>
312 <button name="action_print_survey" string="Print Survey" type="object" icon="gtk-print" context="{'survey_id': survey_id, 'response_id': [response], 'response_no':0}" attrs="{'readonly':[('survey_id','=',False)]}"/>
316 <separator string="Status" colspan="4"/>
317 <group colspan="4" col="6">
318 <field name="state"/>
324 <record model="ir.ui.view" id="view_hr_evaluation_interview_tree">
325 <field name="name">hr_evaluation.interview.tree</field>
326 <field name="model">hr.evaluation.interview</field>
327 <field name="type">tree</field>
328 <field name="arch" type="xml">
329 <tree string="Interview Appraisal">
330 <field name="date_deadline" string="Deadline Date"/>
331 <field name="survey_id"/>
332 <field name="user_id" string="Interviewer"/>
333 <field name="user_to_review_id"/>
334 <field name="response" readonly="1" invisible="True"/>
335 <button name="%(survey.action_view_survey_question_message)d" string="Interview Question" type="action" states="waiting_answer,done,cancel" 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)]}"/>
336 <button name="%(survey.survey_browse_response)d" string="Print Interview" type="action" states="done" icon="gtk-print" context="{'survey_id': survey_id, 'response_id' : [response], 'response_no':0}" attrs="{'readonly':[('response','=',False)]}" />
337 <button name="action_print_survey" string="Print Survey" type="object" icon="gtk-print" context="{'survey_id': survey_id, 'response_id': [response], 'response_no':0}" attrs="{'readonly':[('survey_id','=',False)]}"/>
338 <button name="%(mail.action_email_compose_message_wizard)d" string="Send Reminder Email" icon="terp-mail-message-new" type="action" colspan="2" states="waiting_answer"/>
339 <field name="state"/>
344 <record id="view_hr_evaluation_interview_search" model="ir.ui.view">
345 <field name="name">view_hr_evaluation_interview_search</field>
346 <field name="model">hr.evaluation.interview</field>
347 <field name="type">search</field>
348 <field name="arch" type="xml">
349 <search string="Search Appraisal">
351 <filter icon="terp-gtk-go-back-rtl" string="To Do" name="todo" domain="[('state','=','waiting_answer')]"/>
352 <separator orientation="vertical"/>
353 <filter icon="terp-gnome-cpu-frequency-applet+" string="Late" domain="[('date_deadline','<',current_date)]"/>
354 <separator orientation="vertical"/>
355 <field name="user_to_review_id"/>
356 <field name="user_id" string="Interviewer"/>
359 <group expand="0" string="Group By...">
360 <filter string="Interviewer" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
361 <separator orientation="vertical"/>
362 <filter string="Survey" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'survey_id'}"/>
363 <separator orientation="vertical"/>
364 <filter string="Status" name="group_state" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
370 <record id="view_evaluation_calendar" model="ir.ui.view">
371 <field name="name">Interview Requests</field>
372 <field name="model">hr.evaluation.interview</field>
373 <field name="type">calendar</field>
374 <field name="arch" type="xml">
375 <calendar string="Interview Request" color="user_to_review_id" date_start="date_deadline">
376 <field name="request_id"/>
381 <record model="ir.actions.act_window" id="action_hr_evaluation_interview_tree">
382 <field name="name">Interview Requests</field>
383 <field name="res_model">hr.evaluation.interview</field>
384 <field name="view_type">form</field>
385 <field name="view_id" eval="False"/>
386 <field name="domain">[('is_evaluation' ,'=', True)]</field>
387 <field name="context">{'default_is_evaluation': True, "search_default_todo":1,"search_default_user_id":uid}</field>
388 <field name="search_view_id" ref="view_hr_evaluation_interview_search"/>
389 <field name="help">Interview Requests are generated automatically by OpenERP according to an employee's Appraisal Plan. Each user receives automatic emails and requests to evaluate their colleagues periodically.</field>
392 <record model="ir.actions.act_window.view" id="hr_evaluation_interview_tree">
393 <field name="sequence" eval="1"/>
394 <field name="view_mode">tree</field>
395 <field name="view_id" ref="view_hr_evaluation_interview_tree"/>
396 <field name="act_window_id" ref="action_hr_evaluation_interview_tree"/>
398 <record model="ir.actions.act_window.view" id="hr_evaluation_interview_form">
399 <field name="sequence" eval="2"/>
400 <field name="view_mode">form</field>
401 <field name="view_id" ref="view_hr_evaluation_interview_form"/>
402 <field name="act_window_id" ref="action_hr_evaluation_interview_tree"/>
404 <record model="ir.actions.act_window.view" id="action_view_evaluation_calendar">
405 <field name="sequence" eval="3"/>
406 <field name="view_mode">calendar</field>
407 <field name="view_id" ref="view_evaluation_calendar"/>
408 <field name="act_window_id" ref="action_hr_evaluation_interview_tree"/>
411 <menuitem name="Interview Requests" parent="menu_eval_hr" id="menu_open_hr_evaluation_interview_requests"
412 action="action_hr_evaluation_interview_tree"/>
414 <!-- Email Compose message Action-->
416 id="evaluation_reminders" name="Appraisal Reminders"
417 res_model="mail.compose.message"
418 src_model="hr.evaluation.interview"
419 view_type="form" view_mode="form"
420 target="new" multi="True"
421 key2="client_action_multi"
422 context="{'mail.compose.message.mode':'mass_mail'}"/>
424 <!-- Appraisal Interviews Button on Employee Form -->
426 context="{'search_default_user_to_review_id': [active_id], 'default_user_to_review_id': active_id}"
427 id="act_hr_employee_2_hr__evaluation_interview"
428 name="Appraisal Interviews"
429 res_model="hr.evaluation.interview"
430 src_model="hr.employee"/>