2010-01-20 14:28:28 +00:00
|
|
|
<?xml version="1.0" ?>
|
|
|
|
<openerp>
|
2010-03-04 07:11:37 +00:00
|
|
|
<data>
|
|
|
|
<record model="ir.ui.view" id="view_hr_evaluation_plan_form">
|
|
|
|
<field name="name">hr_evaluation.plan.form</field>
|
|
|
|
<field name="model">hr_evaluation.plan</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Evaluation Plan">
|
|
|
|
<group col="6" colspan="4">
|
|
|
|
<field name="name" select="1"/>
|
|
|
|
<field name="company_id" select="1" widget="selection"/>
|
|
|
|
<field name="active"/>
|
|
|
|
<field name="month_first"/>
|
|
|
|
<field name="month_next"/>
|
|
|
|
<label string="(months)" align="0.0"/>
|
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
|
|
|
<page string="Evaluation Phases">
|
2010-01-20 14:28:28 +00:00
|
|
|
<field name="phase_ids" nolabel="1" colspan="4"/>
|
2010-03-04 07:11:37 +00:00
|
|
|
</page>
|
2010-01-20 14:28:28 +00:00
|
|
|
</notebook>
|
2010-03-04 07:11:37 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_hr_evaluation_plan_tree">
|
|
|
|
<field name="name">hr_evaluation.plan.form</field>
|
|
|
|
<field name="model">hr_evaluation.plan</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Evaluation Plan">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="month_first"/>
|
|
|
|
<field name="month_next"/>
|
|
|
|
<field name="company_id"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="open_view_hr_evaluation_plan_tree">
|
|
|
|
<field name="res_model">hr_evaluation.plan</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
|
|
|
<menuitem name="Evaluations" parent="hr.menu_hr_root" id="menu_eval_hr" sequence="3"/>
|
|
|
|
<!--menuitem name="HR Responsible" parent="menu_eval_hr" id="menu_resp_hr"/-->
|
|
|
|
<menuitem
|
|
|
|
name="Evaluation Plan" parent="menu_eval_hr"
|
|
|
|
id="menu_open_view_hr_evaluation_plan_tree"
|
|
|
|
action="open_view_hr_evaluation_plan_tree"/>
|
2010-01-20 14:28:28 +00:00
|
|
|
|
2010-03-04 07:11:37 +00:00
|
|
|
<record model="ir.ui.view" id="view_hr_evaluation_plan_phase_form">
|
|
|
|
<field name="name">hr_evaluation.plan.phase.form</field>
|
|
|
|
<field name="model">hr_evaluation.plan.phase</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Evaluation Plan Phase">
|
|
|
|
<field name="plan_id" invisible="1"/>
|
|
|
|
<group col="6" colspan="4">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="wait"/>
|
|
|
|
<field name="sequence"/>
|
|
|
|
</group>
|
|
|
|
<group col="4" colspan="4">
|
|
|
|
<separator string="Action to Perform" colspan="4"/>
|
|
|
|
<field name="action"/>
|
|
|
|
<field name="survey_id" widget="selection"/>
|
|
|
|
</group>
|
|
|
|
<group col="4" colspan="4">
|
|
|
|
<group col="4" colspan="2">
|
|
|
|
<separator string="Send to Managers" colspan="2"/>
|
|
|
|
<newline/>
|
|
|
|
<field name="send_answer_manager"/>
|
|
|
|
<newline/>
|
|
|
|
<field name="send_anonymous_manager"/>
|
|
|
|
</group>
|
|
|
|
<group col="4" colspan="2">
|
|
|
|
<separator string="Send to Employees" colspan="2"/>
|
|
|
|
<newline/>
|
|
|
|
<field name="send_answer_employee"/>
|
|
|
|
<newline/>
|
|
|
|
<field name="send_anonymous_employee"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_hr_evaluation_plan_phase_tree">
|
|
|
|
<field name="name">hr_evaluation.plan.phase.form</field>
|
|
|
|
<field name="model">hr_evaluation.plan.phase</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Evaluation Plan Phase" editable="bottom" >
|
|
|
|
<field name="sequence"/>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="action"/>
|
|
|
|
<field name="survey_id" widget="selection"/>
|
|
|
|
<field name="wait"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-20 14:28:28 +00:00
|
|
|
|
2010-03-04 07:11:37 +00:00
|
|
|
<record id="hr_hr_employee_view_form" model="ir.ui.view">
|
2010-01-20 14:28:28 +00:00
|
|
|
<field name="name">hr.hr.employee.view.form</field>
|
|
|
|
<field name="model">hr.employee</field>
|
|
|
|
<field name="inherit_id" ref="hr.view_employee_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<notebook position="inside">
|
|
|
|
<page string="Evaluation">
|
2010-03-04 07:11:37 +00:00
|
|
|
<field name="evaluation_plan_id" on_change="onchange_evaluation_plan_id(evaluation_plan_id)"/>
|
|
|
|
<field name="evaluation_date"/>
|
2010-01-20 14:28:28 +00:00
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_hr_evaluation_form">
|
2010-03-04 07:11:37 +00:00
|
|
|
<field name="name">hr_evaluation.evaluation.form</field>
|
|
|
|
<field name="model">hr_evaluation.evaluation</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Evaluation">
|
|
|
|
<group col="4" colspan="3">
|
|
|
|
<separator string="Evaluation Data" colspan="4"/>
|
|
|
|
<field name="date"/>
|
|
|
|
<field name="employee_id"/>
|
|
|
|
<field name="plan_id"/>
|
|
|
|
<field name="phase_id" domain="[('plan_id', '=', plan_id)]"/>
|
|
|
|
</group>
|
|
|
|
<group col="2" colspan="1">
|
|
|
|
<separator string="Ending Summary" colspan="2"/>
|
|
|
|
<field name="rating" attrs="{'readonly':[('state','<>','progress')],'required':[('state','=','progress')]}"/>
|
|
|
|
<field name="date_close" readonly="1"/>
|
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
|
|
|
<page string="Appraisal">
|
|
|
|
<field name="survey_request_ids" context="{'phase_id': phase_id}" nolabel="1" colspan="4"/>
|
|
|
|
</page>
|
|
|
|
<page string="Action Plan">
|
|
|
|
<field name="note_action" colspan="4" nolabel="1"/>
|
|
|
|
</page>
|
|
|
|
<page string="Summary">
|
|
|
|
<field name="note_summary" colspan="4" nolabel="1"/>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
<newline/>
|
|
|
|
<group col="6" colspan="4">
|
|
|
|
<field name="state"/>
|
|
|
|
<button name="button_plan_in_progress"
|
|
|
|
string="Plan In Progress"
|
2010-01-20 14:28:28 +00:00
|
|
|
states="draft"
|
|
|
|
type="object"/>
|
|
|
|
<button name="button_final_validation"
|
2010-03-04 07:11:37 +00:00
|
|
|
string="Final Validation"
|
2010-01-20 14:28:28 +00:00
|
|
|
states="wait"
|
|
|
|
type="object"/>
|
|
|
|
<button name="button_done"
|
2010-03-04 07:11:37 +00:00
|
|
|
string="Done"
|
2010-01-20 14:28:28 +00:00
|
|
|
states="progress"
|
|
|
|
type="object"/>
|
|
|
|
<button name="button_cancel"
|
2010-03-04 07:11:37 +00:00
|
|
|
string="Cancel"
|
2010-01-20 14:28:28 +00:00
|
|
|
states="draft,wait,progress"
|
|
|
|
type="object"/>
|
|
|
|
</group>
|
|
|
|
</form>
|
2010-03-04 07:11:37 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_hr_evaluation_tree">
|
|
|
|
<field name="name">hr_evaluation.evaluation.form</field>
|
|
|
|
<field name="model">hr_evaluation.evaluation</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Evaluation">
|
|
|
|
<field name="date"/>
|
|
|
|
<field name="employee_id"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="open_view_hr_evaluation_tree">
|
|
|
|
<field name="res_model">hr_evaluation.evaluation</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
|
|
|
<menuitem
|
|
|
|
name="Evaluation" parent="menu_eval_hr"
|
|
|
|
id="menu_open_view_hr_evaluation_tree"
|
|
|
|
action="open_view_hr_evaluation_tree"/>
|
2010-03-03 13:42:00 +00:00
|
|
|
|
|
|
|
|
2010-03-04 07:11:37 +00:00
|
|
|
<record model="ir.ui.view" id="view_hr_evaluation_interview_form">
|
|
|
|
<field name="name">hr_evaluation.interview.form</field>
|
|
|
|
<field name="model">hr.evaluation.interview</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-03-03 13:42:00 +00:00
|
|
|
<form string="Survey Request">
|
2010-03-04 07:11:37 +00:00
|
|
|
<group col="4" colspan="4">
|
|
|
|
<field name="survey_id" widget="selection" colspan="3"/>
|
|
|
|
<group colspan="1">
|
|
|
|
<button name="%(survey.action_view_survey_question_message)d" string="Interview Question" type="action"
|
|
|
|
icon="gtk-execute" context="{'survey_id': survey_id, 'response_id': response, 'active' : response, 'object' : 'hr.evaluation.interview', 'cur_id' : active_id}" attrs="{'readonly':[('survey_id','=',False)]}"/>
|
|
|
|
<button name="%(survey.survey_browse_response)d" string="Print Interview" type="action"
|
|
|
|
icon="gtk-print" context="{'survey_id': survey_id, 'response_id' : response,}" attrs="{'readonly':[('response','!=',True),('survey_id','!=',True)]}" />
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<group col="4" colspan="4">
|
|
|
|
<field name="date_deadline"/>
|
|
|
|
<field name="response" readonly="1"/>
|
|
|
|
<field name="user_to_review_id"/>
|
|
|
|
<field name="user_id"/>
|
|
|
|
</group>
|
2010-03-03 13:42:00 +00:00
|
|
|
<newline/>
|
|
|
|
<separator string="State" colspan="4"/>
|
|
|
|
<group colspan="4" col="5">
|
2010-03-04 07:11:37 +00:00
|
|
|
<field name="state"/>
|
2010-03-03 13:42:00 +00:00
|
|
|
<button name="survey_req_waiting_answer" string="Set to Watting Answer" states="cancel,done" type="object" icon="gtk-new"/>
|
|
|
|
<button name="survey_req_done" string="Done" states="waiting_answer" type="object" icon="gtk-ok"/>
|
|
|
|
<button name="survey_req_cancel" string="Cancelled" states="waiting_answer" type="object" icon="gtk-cancel"/>
|
|
|
|
</group>
|
|
|
|
</form>
|
2010-03-04 07:11:37 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_hr_evaluation_interview_tree">
|
|
|
|
<field name="name">hr_evaluation.interview.tree</field>
|
|
|
|
<field name="model">hr.evaluation.interview</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Evaluation Plan Phase">
|
2010-03-03 13:42:00 +00:00
|
|
|
<field name="date_deadline"/>
|
|
|
|
<field name="survey_id" widget="selection"/>
|
|
|
|
<field name="user_to_review_id"/>
|
|
|
|
|
|
|
|
<field name="response" readonly="1" invisible="True"/>
|
2010-03-04 07:11:37 +00:00
|
|
|
<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, 'active' : response, 'object' : 'hr.evaluation.interview', 'cur_id' : active_id}" attrs="{'readonly':[('survey_id','=',False)]}"/>
|
|
|
|
<button name="%(survey.survey_browse_response)d" string="Print Interview" type="action" states="waiting_answer,done,cancel"
|
|
|
|
icon="gtk-print" context="{'survey_id': survey_id, 'response_id' : response,}" attrs="{'readonly':[('response','!=',True),('survey_id','!=',True)]}" />
|
|
|
|
<field name="state" />
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-03 13:42:00 +00:00
|
|
|
|
2010-03-04 07:11:37 +00:00
|
|
|
<record model="ir.actions.act_window" id="action_hr_evaluation_interview_tree">
|
|
|
|
<field name="res_model">hr.evaluation.interview</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
2010-03-03 13:42:00 +00:00
|
|
|
|
2010-03-04 07:11:37 +00:00
|
|
|
<menuitem
|
|
|
|
name="Intreview Requests" parent="menu_eval_hr"
|
|
|
|
id="menu_open_hr_evaluation_interview_requests"
|
|
|
|
action="action_hr_evaluation_interview_tree"/>
|
2010-03-03 13:42:00 +00:00
|
|
|
|
2010-03-04 07:11:37 +00:00
|
|
|
</data>
|
2010-01-20 14:28:28 +00:00
|
|
|
</openerp>
|