fix promotion

This commit is contained in:
Bakry 2024-12-02 12:30:50 +03:00
parent f577c1bb70
commit fa1d98476f
2 changed files with 2 additions and 3 deletions

View File

@ -85,7 +85,7 @@ class HrPayrollRaise(models.Model):
self.next_raise_date = ndate
if self.percentage_bonus==True:
self.new_salary= round((self.current_salary*self.percentage_raises)/100+self.current_salary,0)
self.new_salary= (self.current_salary*self.percentage_raises)/100+self.current_salary
if self.employee_appraisal:
self.percentage_raises = self.employee_appraisal.level_achieved_percentage*self.scale_id.Percentage_increase

View File

@ -30,8 +30,7 @@
<xpath expr="//field[@name='new_degree']" position="after">
<field name="new_basic_salary" string="New Basic Salary" attrs="{'readonly':[('state','!=','draft')]}"/>
<field name="new_salary" string="New Salary" readonly="1" force_save="1"/>
<field name="promotion_job_id" force_save="1" attrs="{'readonly':[('state','!=','draft')]}"
widget="selection"/>
<field name="promotion_job_id" force_save="1" attrs="{'readonly':[('state','!=','draft')]}"/>
<field name="changed_job_id" readonly="1" force_save="1"
attrs="{'invisible':[('promotion_job_id', '=', False)]}"/>
<field name="promotion_seniority" attrs="{'readonly':[('state','!=','draft')]}"/>