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>
65 <menuitem name="Evaluations" parent="hr.menu_hr_root" id="menu_eval_hr" sequence="6"/>
66 <menuitem name="Periodic Evaluations" parent="hr.menu_hr_configuration" id="menu_eval_hr_config" sequence="4" groups="base.group_system"/>
67 <menuitem parent="menu_eval_hr_config" id="menu_open_view_hr_evaluation_plan_tree"
68 action="open_view_hr_evaluation_plan_tree"/>
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="Evaluation Plan Phase">
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"/>
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:Evaluation 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="Evaluation Plan Phase" 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 <notebook position="inside">
144 <page string="Evaluation">
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 string="Evaluation">
158 <group col="4" colspan="3">
159 <separator string="Evaluation Data" colspan="4"/>
160 <field name="employee_id" on_change="onchange_employee_id(employee_id)"/>
161 <field name="plan_id"/>
163 <field name="progress" widget="progressbar"/>
165 <group col="2" colspan="1">
166 <separator string="Ending Summary" colspan="2"/>
167 <field name="rating" attrs="{'readonly':[('state','<>','progress')],'required':[('state','=','progress')]}"/>
168 <field name="date_close" readonly="1"/>
170 <notebook colspan="4">
171 <page string="Appraisal">
172 <field name="survey_request_ids" context="{'phase_id': phase_id}" nolabel="1" colspan="4" widget="one2many"/>
174 <page string="Internal Notes">
175 <field name="note_action" colspan="4" nolabel="1"
176 groups="base.group_hr_manager"/>
178 <page string="Public Notes">
179 <field name="note_summary" colspan="4" nolabel="1"/>
183 <group col="6" colspan="4">
184 <field name="state"/>
185 <button name="button_plan_in_progress" string="Start Evaluation" states="draft" type="object"
187 <button name="button_final_validation" string="Final Validation" states="wait" type="object"
189 <button name="button_done" string="Done" states="progress" type="object"
191 <button name="button_cancel" string="Cancel" states="draft,wait,progress" type="object"
198 <record model="ir.ui.view" id="view_hr_evaluation_tree">
199 <field name="name">hr_evaluation.evaluation.tree</field>
200 <field name="model">hr_evaluation.evaluation</field>
201 <field name="type">tree</field>
202 <field name="arch" type="xml">
203 <tree colors="blue:state in ('draft');black:state in ('wait','progress');gray:state in('done','cancel')" string="Evaluation">
204 <field name="employee_id"/>
205 <field name="plan_id"/>
207 <field name="progress" widget="progressbar"/>
208 <field name="rating"/>
209 <field name="state"/>
214 <record model="ir.ui.view" id="view_hr_evaluation_graph">
215 <field name="name">hr_evaluation.evaluation.graph</field>
216 <field name="model">hr_evaluation.evaluation</field>
217 <field name="type">graph</field>
218 <field name="arch" type="xml">
219 <graph string="Evaluation" type="bar">
220 <field name="employee_id"/>
221 <field name="progress" operator="+"/>
226 <record id="hr_evaluation.evaluation_search" model="ir.ui.view">
227 <field name="name">hr_evaluation.evaluation_search</field>
228 <field name="model">hr_evaluation.evaluation</field>
229 <field name="type">search</field>
230 <field name="arch" type="xml">
231 <search string="Search Evaluation">
232 <group col='10' colspan='4'>
233 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]"/>
234 <filter icon="terp-check" string="In progress" domain="[('state','=','wait')]"/>
235 <filter icon="terp-dialog-close" string="Final Step" domain="[('state','=','progress')]"/>
236 <separator orientation="vertical"/>
237 <filter icon="terp-go-week" string="7 Days" help="Evaluations to close within the next 7 days"
238 domain="[('date', '>=', (datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]" />
239 <filter icon="terp-gnome-cpu-frequency-applet+" string="Overpassed"
240 help="Evaluations that overpassed the deadline" domain="[('date','>=',str(datetime.date.today()))]" />
241 <separator orientation="vertical"/>
242 <field name="employee_id" />
243 <field name="plan_id" widget="selection" />
246 <group expand='0' string='Group by...'>
247 <filter string='Employee' icon="terp-personal" domain="[]" context="{'group_by' : 'employee_id'}" />
248 <filter string='Plan' icon="terp-stock_align_left_24" domain="[]" context="{'group_by' : 'plan_id'}" />
249 <filter string='State' icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by' : 'state'}" />
250 <separator orientation="vertical"/>
251 <filter string='Date' icon="terp-go-month" domain="[]" context="{'group_by' : 'date'}" />
257 <record model="ir.actions.act_window" id="open_view_hr_evaluation_tree">
258 <field name="name">Evaluation</field>
259 <field name="res_model">hr_evaluation.evaluation</field>
260 <field name="view_type">form</field>
261 <field name="view_mode">tree,form,graph</field>
262 <field name="search_view_id" ref="hr_evaluation.evaluation_search"/>
265 <menuitem name="Evaluation" parent="menu_eval_hr" id="menu_open_view_hr_evaluation_tree"
266 action="open_view_hr_evaluation_tree"/>
268 <record model="ir.ui.view" id="view_hr_evaluation_interview_form">
269 <field name="name">hr_evaluation.interview.form</field>
270 <field name="model">hr.evaluation.interview</field>
271 <field name="type">form</field>
272 <field name="arch" type="xml">
273 <form string="Interview Evaluation">
274 <group col="4" colspan="4">
275 <field name="survey_id"/>
276 <field name="evaluation_id"/>
277 <group col="2" colspan="2">
278 <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)]}"/>
279 <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)]}" />
281 <field name="date_deadline"/>
282 <field name="response" readonly="1"/>
283 <field name="user_to_review_id"/>
284 <field name="user_id" string="Interviewer"/>
287 <separator string="State" colspan="4"/>
288 <group colspan="4" col="6">
289 <field name="state"/>
295 <record model="ir.ui.view" id="view_hr_evaluation_interview_tree">
296 <field name="name">hr_evaluation.interview.tree</field>
297 <field name="model">hr.evaluation.interview</field>
298 <field name="type">tree</field>
299 <field name="arch" type="xml">
300 <tree string="Interview Evaluation">
301 <field name="date_deadline"/>
302 <field name="survey_id"/>
303 <field name="user_id" string="Interviewer"/>
304 <field name="user_to_review_id"/>
305 <field name="response" readonly="1" invisible="True"/>
306 <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)]}"/>
307 <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)]}" />
308 <field name="state"/>
313 <record id="view_hr_evaluation_interview_search" model="ir.ui.view">
314 <field name="name">view_hr_evaluation_interview_search</field>
315 <field name="model">hr.evaluation.interview</field>
316 <field name="type">search</field>
317 <field name="arch" type="xml">
318 <search string="Search Evaluation">
319 <group col='10' colspan='4'>
320 <filter icon="terp-gtk-go-back-rtl" string="To Do" name="todo" domain="[('state','=','waiting_answer')]"/>
321 <separator orientation="vertical"/>
322 <filter icon="terp-gnome-cpu-frequency-applet+" string="Late" domain="[('date_deadline','<',current_date)]"/>
323 <separator orientation="vertical"/>
324 <field name="user_to_review_id"/>
325 <field name="user_id" string="Interviewer"/>
328 <group expand="0" string="Group By...">
329 <filter string="Survey" icon="terp-personal" domain="[]" context="{'group_by':'survey_id'}"/>
330 <filter string="User" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
331 <filter string="State" name="group_state" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
337 <record model="ir.actions.act_window" id="action_hr_evaluation_interview_tree">
338 <field name="name">Interview Requests</field>
339 <field name="res_model">hr.evaluation.interview</field>
340 <field name="view_type">form</field>
341 <field name="view_mode">tree,form</field>
342 <field name="domain">[('is_evaluation' ,'=', True)]</field>
343 <field name="context">{"search_default_todo":1,"search_default_user_id":uid}</field>
344 <field name="search_view_id" ref="view_hr_evaluation_interview_search"/>
347 <menuitem name="Interview Requests" parent="menu_eval_hr" id="menu_open_hr_evaluation_interview_requests"
348 action="action_hr_evaluation_interview_tree"/>
349 <menuitem name="Evaluation Reminders" parent="menu_eval_hr" id="menu_eval_send_mail"
350 action="action_hr_evaluation_send_mail" sequence="45"/>
352 <!-- Evaluation Interviews Button on Employee Form -->
353 <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"/>