This commit is contained in:
younes 2025-08-24 14:04:06 +01:00
parent 252146ba2e
commit c14feae4d3
1 changed files with 1 additions and 5 deletions

View File

@ -105,7 +105,7 @@ class HrEmployee(models.Model):
emp_no = fields.Char(
string="Employee number",
tracking=True,
default=lambda self: self.env['ir.sequence'].next_by_code('hr.employee')
default=lambda self: self._default_emp_code()
)
english_name = fields.Char(string="English Name")
home_no = fields.Char()
@ -271,11 +271,7 @@ class HrEmployee(models.Model):
help='New participants who have no prior periods of contribution under the GOSI.')
gosi_years = fields.Integer(string="GOSI Years", compute='_compute_gosi_years', store=True,
help='GOSI Years According To The New activation Date Until Today')
<<<<<<< HEAD
=======
>>>>>>> 5eaada3d742d71839972b574c7532eabc21a7459
@api.depends('new_gosi')
def _compute_gosi_years(self):
for emp in self: