248 lines
16 KiB
XML
248 lines
16 KiB
XML
<odoo>
|
|
<data>
|
|
|
|
<!-- TREE VIEW -->
|
|
<record id="view_employee_appraisal_template_tree" model="ir.ui.view">
|
|
<field name="name">employee.appraisal.template.config.tree</field>
|
|
<field name="model">employee.appraisal.template.config</field>
|
|
<field name="arch" type="xml">
|
|
<list string="Employee Appraisal">
|
|
<field name="seq" string="Performance Id"/>
|
|
<field name="employee_appraisal_id"/>
|
|
<!-- <field name="employee_evaluator_name_id"/>-->
|
|
<!-- <field name="performance_evaluator"/>-->
|
|
<field name="template_id" string="Template"/>
|
|
<field name="appraisal_period_id" string="Performance Period"/>
|
|
<!-- <field name="state" widget="badge"/>-->
|
|
</list>
|
|
</field>
|
|
</record>
|
|
<record id="view_employee_appraisal_form" model="ir.ui.view">
|
|
<field name="name">employee.appraisal.template.config.form</field>
|
|
<field name="model">employee.appraisal.template.config</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Employee Appraisal">
|
|
<header>
|
|
<!-- <field name="state" widget="statusbar"/>-->
|
|
<field name="available_stage_ids" invisible="1"/>
|
|
<!-- <field name="stage_id"-->
|
|
<!-- widget="statusbar"/>-->
|
|
<field name="stage_id"
|
|
widget="statusbar"
|
|
domain="[('id', 'in', available_stage_ids)]"/>
|
|
<button name="action_sent_employee_appraisal" string="Send" type="object"
|
|
confirm="Do you want to move to next stage?"
|
|
class="btn-primary" invisible="stage_id.name != 'NEW'"/>
|
|
<!-- class="btn-primary" invisible="state != 'new'"/>-->
|
|
<button name="action_send_colleague_feedback"
|
|
string="Send Colleague Feedback & Manager"
|
|
type="object"
|
|
class="btn-primary" invisible="stage_id.name != 'COLLEAGE&MANAGER'"/>
|
|
<!-- invisible="state != 'self_evaluation'"/>-->
|
|
<button name="action_confirm_manager" string="Manager" type="object"
|
|
confirm="Do you want to move to next stage?"
|
|
class="btn-primary" invisible="stage_id.name != 'HR'"/>
|
|
<!-- invisible="state != 'colleague_manager'"/>-->
|
|
<button name="action_confirm_hr" string="HR Confirm" type="object"
|
|
confirm="Do you want to move to next stage?"
|
|
class="btn-primary" invisible="stage_id.name != 'HR'"/>
|
|
<!-- invisible="state != 'hr_evaluation'"/>-->
|
|
<button name="action_finance_approve" string="Finance Appraisal"
|
|
type="object" class="btn-primary" invisible="stage_id.name != 'FINANCE TEAM'"/>
|
|
<!-- invisible="state != 'finance_team'"/>-->
|
|
<!-- <button name="action_confirm" string="Confirm" type="object"-->
|
|
<!-- confirm="Do you want to move to next stage?"-->
|
|
<!-- class="btn-primary" invisible="state != 'self_evaluation'"/>-->
|
|
<!-- <button name="action_move_manager_stage"-->
|
|
<!-- type="object"-->
|
|
<!-- string="Move To Manager Evaluation"-->
|
|
<!-- class="btn-primary"-->
|
|
<!-- invisible="state != 'colleague_feedback'"/>-->
|
|
</header>
|
|
<sheet>
|
|
<group col="2">
|
|
<group>
|
|
<field name="seq" string="Performance Id"/>
|
|
<field name="employee_appraisal_id" string="Employee"/>
|
|
<field name="job_appraisal_id" string="Current Job Title" readonly="1"/>
|
|
<field name="department_appraisal_id" string="Department" readonly="1"/>
|
|
<field name="template_id" string="Template"/>
|
|
<!-- <field name="available_stage_ids" invisible="0" widget="many2many_tags"/>-->
|
|
<field name="appraisal_period_id" string="Performance Period"/>
|
|
<!-- <field name="manager_ids" widget="many2many_tags"/>-->
|
|
<field name="managerapp_id"/>
|
|
<field name="manager_remarks"/>
|
|
<field name="hr_apprai_id" string="HR"/>
|
|
<field name="hr_remarks"/>
|
|
<field name="start_date" readonly="1"/>
|
|
</group>
|
|
<group>
|
|
<field name="image_1920" widget="image" class="oe_avatar" nolabel="1"
|
|
options="{'zoom': true}"/>
|
|
<field name="total_employee_score" readonly="1"/>
|
|
<field name="total_manager_score" readonly="1"/>
|
|
<field name="total_hr_score" readonly="1"/>
|
|
<field name="company_id" string="Company"/>
|
|
<field name="end_date" readonly="1"/>
|
|
<field name="template_empl_rating_bool"/>
|
|
<field name="template_empl_point_bool"/>
|
|
</group>
|
|
<group string="Performance Standards">
|
|
<div>
|
|
1 = Unsatisfactory
|
|
</div>
|
|
<div>
|
|
2 = Needs Improvements
|
|
</div>
|
|
<div>
|
|
3 = Meets Expectations
|
|
</div>
|
|
<div>
|
|
4 = Exceeds Expectations
|
|
</div>
|
|
<div>
|
|
5 = Outstanding
|
|
</div>
|
|
<div></div>
|
|
<div>
|
|
<field name="Note_appraisal" widget="text" style="font-weight:bold;" nolabel="1"/>
|
|
</div>
|
|
</group>
|
|
<group string="Overall Scores">
|
|
<field name="overall_score" readonly="1"/>
|
|
<field name="overall_rating" readonly="1"/>
|
|
<field name="overall_rating_star" widget="priority" readonly="1"/>
|
|
<field name="overall_rating_value" readonly="1"/>
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page string="KRA & KPI Evaluation">
|
|
<field name="kra_line_ids" nolabel="1">
|
|
<!-- LIST VIEW -->
|
|
<list>
|
|
<field name="name" readonly="1"/>
|
|
<field name="description_line_kra" readonly="1"/>
|
|
<!-- <field name="kra_line_weightage" sum="Total Weightage" readonly="1"/>-->
|
|
<!-- <field name="kra_line_star_weightage" sum="Total Weightage" readonly="1"/>-->
|
|
<field name="kra_line_weightage"
|
|
readonly="1" sum="Total weight"
|
|
column_invisible="parent.template_empl_point_bool == False or parent.template_empl_rating_bool == True"/>
|
|
<field name="kra_line_star_display" class="kra_star_display"
|
|
readonly="1" sum="Total stars"
|
|
column_invisible="parent.template_empl_rating_bool == False"/>
|
|
<!-- <field name="kra_line_star_demo_weightage" widget="priority"-->
|
|
<!-- sum="Total Weightage" readonly="1" column_invisible="1"/>-->
|
|
<!-- <field name="kra_line_star_display" readonly="1" class="kra_star_display"/>-->
|
|
<field name="kpi_count_line" readonly="1"/>
|
|
</list>
|
|
<form class="appraisal_kra_popup">
|
|
<sheet>
|
|
<group>
|
|
<h2>
|
|
<field name="name" readonly="1" nolabel="1"/>
|
|
</h2>
|
|
</group>
|
|
<!-- KPI QUESTIONS -->
|
|
<field name="kpi_line_ids" nolabel="1" string="KPI">
|
|
<list editable="bottom" delete="0">
|
|
<field name="sequence" widget="handle"/>
|
|
<field name="question"/>
|
|
<field name="description"/>
|
|
<!-- <field name="kpi_line_weightage" sum="Total Weight Age"/>-->
|
|
<field name="template_empl_rating_bool" column_invisible="1"/>
|
|
<field name="template_empl_point_bool" column_invisible="1"/>
|
|
<field name="employee_score" string="self Rating" sum="Total score"
|
|
column_invisible="parent.template_empl_point_bool == False"/>
|
|
<field name="rating_star" widget="priority" string="Self Rating"
|
|
column_invisible="parent.template_empl_rating_bool == False or parent.template_empl_point_bool == True"/>
|
|
<field name="manager_rating_star" widget="priority" string="Manager Rating"
|
|
column_invisible="parent.template_empl_rating_bool == False or parent.template_empl_point_bool == True"/>
|
|
<field name="hr_rating_star" widget="priority" string="HR Rating"
|
|
column_invisible="parent.template_empl_rating_bool == False or parent.template_empl_point_bool == True"/>
|
|
<field name="manager_score" sum="Total Points" column_invisible="parent.template_empl_point_bool == False"/>
|
|
<field name="hr_score" sum="Total Points" column_invisible="parent.template_empl_point_bool == False"/>
|
|
</list>
|
|
</field>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</page>
|
|
<page string="Team Feed Back">
|
|
<!-- <field name="colleague_feed_ids" readonly="state != 'colleague_feedback'">-->
|
|
<field name="colleague_feed_ids">
|
|
<list editable="bottom">
|
|
<field name="colleague_feed_id"/>
|
|
<field name="feedback"/>
|
|
<!-- <field name="feedback" readonly="state == 'submitted'"/>-->
|
|
<!-- <field name="state"/>-->
|
|
<button name="action_submit_feedback" type="object" string="Submit"/>
|
|
<!-- invisible="state == 'submitted'"/>-->
|
|
</list>
|
|
</field>
|
|
</page>
|
|
<page string="Finance Review">
|
|
|
|
<group>
|
|
|
|
<group string="Salary Details">
|
|
|
|
<field name="current_salary"/>
|
|
|
|
<field name="appraisal_percentage"/>
|
|
|
|
<field name="appraisal_amount"/>
|
|
|
|
<field name="new_salary" readonly="1"/>
|
|
|
|
</group>
|
|
|
|
<group string="Finance Remarks">
|
|
|
|
<field name="finance_remarks"/>
|
|
|
|
<field name="finance_user_id"
|
|
readonly="1"/>
|
|
|
|
<field name="finance_date"
|
|
readonly="1"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<footer>
|
|
|
|
|
|
</footer>
|
|
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
<chatter/>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- ACTION -->
|
|
<record id="action_employee_appraisal_template" model="ir.actions.act_window">
|
|
<field name="name">Employee Performance Review</field>
|
|
<field name="res_model">employee.appraisal.template.config</field>
|
|
<field name="view_mode">list,form</field>
|
|
</record>
|
|
|
|
<!-- ROOT MENU -->
|
|
<menuitem id="menu_employee_appraisal_root"
|
|
name="Employee Appraisal"
|
|
web_icon="hrms_employee_appraisal,static/description/icon.png"
|
|
sequence="10"/>
|
|
|
|
<!-- CONFIGURATION -->
|
|
<menuitem id="menu_employee_appraisal_configuration"
|
|
name="Employee Performance Review"
|
|
parent="menu_employee_appraisal_root"
|
|
action="action_employee_appraisal_template"
|
|
sequence="03"/>
|
|
|
|
</data>
|
|
</odoo>
|