feature/odoo18 #2

Merged
administrator merged 43 commits from feature/odoo18 into develop 2025-05-22 16:16:43 +05:30
3 changed files with 3 additions and 3 deletions
Showing only changes of commit 359570b088 - Show all commits

View File

@ -142,7 +142,7 @@ class HRApplicant(models.Model):
for rec in self:
if rec.resume:
attachment = self.env.ref("hr_recruitment_extended.employee_recruitment_attachments_preview")
file = attachment.write({
file = attachment.sudo().write({
'datas': rec.resume,
})
if file:

View File

@ -39,7 +39,7 @@ class HrCandidate(models.Model):
for rec in self:
if rec.resume:
attachment = self.env.ref("hr_recruitment_extended.employee_recruitment_attachments_preview")
file = attachment.write({
file = attachment.sudo().write({
'datas':rec.resume,
})
if file:

View File

@ -30,7 +30,7 @@ class EmployeeRecruitmentAttachments(models.Model):
for record in self:
if record.file:
attachment = self.env.ref("hr_recruitment_extended.employee_recruitment_attachments_preview")
attachment.datas = record.file
attachment.sudo().datas = record.file
return {
'name': "File Preview",
'type': 'ir.actions.act_url',