Skip to content

[17.0][MIG] hr_leave_has_attachment: Migration to 17#25

Open
DantePereyra wants to merge 5 commits into17.0from
17.0-mig-hr_leave_has_attachment
Open

[17.0][MIG] hr_leave_has_attachment: Migration to 17#25
DantePereyra wants to merge 5 commits into17.0from
17.0-mig-hr_leave_has_attachment

Conversation

@DantePereyra
Copy link
Copy Markdown

Standard migration.
I'm not sure how to test @api.ondelete, could you check @ChristianSantamaria? Thanks!

IriaAlonso and others added 5 commits January 14, 2026 17:14
Adds new field to hr.leave model to check if there are any attachments.
The 'hr_leave_attach_autovalidated' addon allow to delete an attachment,
but this addon modify the unlink() method editing the attachment, giving permissions error.
Adding the sudo() allow to edit the attachment, fixing this problem.
@DantePereyra DantePereyra force-pushed the 17.0-mig-hr_leave_has_attachment branch from bc7001b to d5162cc Compare January 15, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants