This commit is contained in:
Mazen Abdo 2025-08-24 12:42:55 +03:00
parent a95ec2205d
commit d2e2c74e68
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ class HrEmployee(models.Model):
r_name = fields.Char("Name")
# fields of page work information in employees view
emp_no = fields.Char(string="Employee number", tracking=True, default=lambda self: self._default_emp_code())
emp_no = fields.Char(string="Employee number", tracking=True)
english_name = fields.Char(string="English Name")
home_no = fields.Char()
present_address = fields.Char()
@ -661,7 +661,7 @@ class HrEmployee(models.Model):
if "context" in dir(self.env) and new_record.name:
if new_record.english_name:
new_record.translate_employee_name()
# seq = self.env['ir.sequence'].next_by_code('hr.employee') or '/'
return new_record
@api.constrains("emp_no", "birthday", 'attachment_ids')