Merge pull request #5454 from expsa/JAZ-3888

[FIX]  exp_official_mission: write new records with the new sequence
This commit is contained in:
abdurrahman-saber 2025-11-19 15:33:22 +04:00 committed by GitHub
commit e5619e5c2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ class HrOfficialMission(models.Model):
new_record = super(HrOfficialMission, self).create(vals)
if new_record.process_type == 'mission':
seq = self.env['ir.sequence'].next_by_code('hr.official.mission') or '/'
vals['reference'] = seq
new_record.write({'reference': seq})
return new_record
#########################################