342 lines
23 KiB
XML
342 lines
23 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="appraisal_period_id" string="Performance Period"/>
|
|
<field name="stage_id" widget="badge"
|
|
decoration-success="stage_color_class == 'success'"
|
|
decoration-info="stage_color_class == 'info'"
|
|
decoration-warning="stage_color_class == 'warning'"
|
|
decoration-primary="stage_color_class == 'primary'"
|
|
decoration-danger="stage_color_class == 'danger'"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_employee_app_search" model="ir.ui.view">
|
|
<field name="name">employee.app.search</field>
|
|
<field name="model">employee.appraisal.template.config</field>
|
|
<field name="arch" type="xml">
|
|
<search>
|
|
<searchpanel>
|
|
<field name="company_id" icon="fa-building"/>
|
|
<field name="department_appraisal_id" icon="fa-users"/>
|
|
<field name="stage_id" icon="fa-tasks" select="multi" enable_counters="1"/>
|
|
</searchpanel>
|
|
</search>
|
|
</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?"
|
|
groups="hrms_employee_appraisal.group_appraisal_manager"
|
|
class="btn-primary" invisible="stage_name != 'COLLEAGUES&MANAGER'"/>
|
|
<button name="action_send_colleague_feedback"
|
|
string="Send Colleague Feedback & Manager"
|
|
confirm="Do you want to move to next stage?"
|
|
type="object"
|
|
class="btn-primary"
|
|
invisible="stage_name != 'NEW' or not is_current_employee"/>
|
|
<!-- groups="group_appraisal_employee,group_appraisal_management"-->
|
|
<!-- -->
|
|
<!-- class="btn-primary" invisible="stage_name != 'COLLEAGE&MANAGER'"/>-->
|
|
|
|
<button name="action_confirm_hr" string="HR Confirm" type="object"
|
|
confirm="Do you want to move to next stage?"
|
|
groups="hrms_employee_appraisal.group_appraisal_hr"
|
|
class="btn-primary" invisible="stage_name != 'HR'"/>
|
|
<button name="action_head_hr"
|
|
string="HR Head Approval"
|
|
groups="hrms_employee_appraisal.group_appraisal_hr_head"
|
|
type="object" class="btn-primary"
|
|
invisible="stage_name != 'HR HEAD'"/>
|
|
<!-- invisible="state != 'hr_evaluation'"/>-->
|
|
<button name="action_finance_approve" string="Finance Appraisal"
|
|
type="object" class="btn-primary"
|
|
groups="hrms_employee_appraisal.group_appraisal_finance" invisible="stage_name != 'FINANCE'"/>
|
|
<button name="action_finance_head" string="Finance Head Approval" type="object" groups="hrms_employee_appraisal.group_appraisal_finance_head"
|
|
class="btn-primary" invisible="stage_name != 'FINANCE HEAD'"/>
|
|
<button name="action_create_pip"
|
|
string="Create PIP"
|
|
type="object"
|
|
class="btn-danger"
|
|
invisible="invite_pip == False or overall_rating not in ('0','1','2')"/>
|
|
<button name="action_initiate_pip"
|
|
string="Initiate PIP"
|
|
type="object"
|
|
class="btn-danger"
|
|
invisible="stage_name != 'MANAGEMENT'
|
|
or overall_rating not in ('0', '1', '2')
|
|
or invite_pip"/>
|
|
<!-- 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>
|
|
<div class="oe_button_box" name="button_box">
|
|
|
|
<button name="action_view_current_contract"
|
|
type="object"
|
|
class="oe_stat_button"
|
|
icon="fa-file-text-o">
|
|
<field name="contract_count"
|
|
string="Contracts"
|
|
widget="statinfo"/>
|
|
</button>
|
|
</div>
|
|
<group col="2">
|
|
<group>
|
|
<field name="seq" string="Performance Id"/>
|
|
<field name="employee_appraisal_id" string="Employee" readonly="1"
|
|
options="{'no_open': True}"/>
|
|
<field name="job_appraisal_id" string="Current Job Title" readonly="1"
|
|
options="{'no_open': True}"/>
|
|
<field name="department_appraisal_id" string="Department" readonly="1"
|
|
options="{'no_open': True}"/>
|
|
<!-- <field name="template_id" string="Template"/>-->
|
|
<!-- <field name="available_stage_ids" invisible="0" widget="many2many_tags"/>-->
|
|
<field name="appraisal_period_id" string="Performance Period" readonly="1"
|
|
options="{'no_open': True}"/>
|
|
<!-- <field name="manager_ids" widget="many2many_tags"/>-->
|
|
<field name="managerapp_id" readonly="1" options="{'no_open': True}"/>
|
|
<field name="is_manager_reviewer" invisible="1"/>
|
|
<field name="manager_remarks" readonly="not is_manager_reviewer"/>
|
|
<field name="hr_apprai_id" string="HR" readonly="1" options="{'no_open': True}"/>
|
|
<field name="hr_head_apprai_id" string="Head HR" readonly="1" options="{'no_open': True}"/>
|
|
<field name="is_hr_reviewer" invisible="1"/>
|
|
<field name="hr_remarks" readonly="not is_hr_reviewer"/>
|
|
|
|
</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" readonly="1" options="{'no_open': True}"/>
|
|
<field name="start_date" readonly="1"/>
|
|
<field name="end_date" readonly="1"/>
|
|
<field name="template_empl_rating_bool" readonly="1" invisible="1"/>
|
|
<field name="template_empl_point_bool" readonly="1" invisible="1"/>
|
|
<field name="hr_head_remarks" placeholder="Enter HR Head Remarks..."
|
|
invisible="stage_name != 'HR HEAD'"/>
|
|
</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_rating"
|
|
class="kra_rating_display"
|
|
readonly="1"
|
|
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" readonly="1"/>
|
|
<field name="description" readonly="1"/>
|
|
<!-- <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="is_employee_reviewer" column_invisible="1"/>
|
|
<field name="employee_score" string="self Rating" sum="Total score"
|
|
readonly="not is_employee_reviewer"
|
|
column_invisible="parent.template_empl_point_bool == False"/>
|
|
<field name="rating_star" widget="priority" string="Self Rating"
|
|
readonly="not is_employee_reviewer"
|
|
column_invisible="parent.template_empl_rating_bool == False or parent.template_empl_point_bool == True"/>
|
|
<field name="is_manager_reviewer" column_invisible="1"/>
|
|
<field name="is_hr_reviewer" column_invisible="1"/>
|
|
<field name="manager_rating_star" widget="priority"
|
|
string="Manager Rating" readonly="not is_manager_reviewer"
|
|
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"
|
|
readonly="not is_hr_reviewer"
|
|
column_invisible="parent.template_empl_rating_bool == False or parent.template_empl_point_bool == True"/>
|
|
<field name="manager_score" sum="Total Points"
|
|
readonly="not is_manager_reviewer"
|
|
column_invisible="parent.template_empl_point_bool == False"/>
|
|
<field name="hr_score" sum="Total Points"
|
|
readonly="not is_hr_reviewer"
|
|
column_invisible="parent.template_empl_point_bool == False"/>
|
|
</list>
|
|
</field>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</page>
|
|
<page string="Disciplinary Actions">
|
|
<field name="disciplinary_ids" readonly="1">
|
|
<list create="0" delete="0" open_form_view="1">
|
|
<field name="complaint_date"/>
|
|
<field name="complaint_type_id"/>
|
|
<field name="mistake_type_id"/>
|
|
<field name="complaint"/>
|
|
<field name="state"
|
|
widget="badge"
|
|
decoration-success="state == 'closed'"
|
|
decoration-warning="state == 'submitted'"
|
|
decoration-info="state == 'pending'"
|
|
decoration-danger="state == 'cancel'"/>
|
|
</list>
|
|
</field>
|
|
</page>
|
|
<page string="Achievements & Documents">
|
|
<group>
|
|
<field name="achievement_summary" widget="html"
|
|
placeholder="Describe your achievements during this appraisal period..."/>
|
|
<field name="employee_comments" placeholder="Additional comments..."/>
|
|
</group>
|
|
<group string="Supporting Documents">
|
|
<field name="attachment_ids" widget="many2many_binary"/>
|
|
</group>
|
|
</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'"/>-->
|
|
|
|
<button name="action_submit_feedback" type="object" string="Submit"
|
|
invisible="state == 'submitted'"/>
|
|
<field name="state"/>
|
|
<!-- invisible="state == 'submitted'"/>-->
|
|
</list>
|
|
</field>
|
|
</page>
|
|
<page string="Finance Review">
|
|
<group>
|
|
<button name="action_update_contract_salary"
|
|
string="Update Contract Salary"
|
|
type="object"
|
|
class="btn-primary"
|
|
invisible="salary_update"/>
|
|
<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="salary_update" readonly="1"/>
|
|
<field name="finance_remarks"/>
|
|
<field name="finance_head_remarks"/>
|
|
</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>
|
|
<field name="search_view_id" ref="view_employee_app_search"/>
|
|
</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="04"/>
|
|
|
|
</data>
|
|
</odoo>
|