Skip to content

[17.0][MIG] hr_leave_attach_autovalidated: Migration to 17.0#23

Open
DantePereyra wants to merge 3 commits into17.0from
17.0-mig-hr_leave_attach_autovalidated
Open

[17.0][MIG] hr_leave_attach_autovalidated: Migration to 17.0#23
DantePereyra wants to merge 3 commits into17.0from
17.0-mig-hr_leave_attach_autovalidated

Conversation

@DantePereyra
Copy link
Copy Markdown

Standard migration.

Allow to attach files on autovalidated absences.
@DantePereyra DantePereyra force-pushed the 17.0-mig-hr_leave_attach_autovalidated branch from 377d3b5 to a6d0833 Compare January 14, 2026 15:48
Copy link
Copy Markdown
Contributor

@ChristianSantamaria ChristianSantamaria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review, and minor change..

def _check_leave_attachment_delete(self):
for attach in self:
if (attach.res_model == 'hr.leave' and attach.res_id):
hr_leave_id = self.env['hr.leave'].browse(attach.res_id)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid so many changes appearing in the commit, you could use the old name the variable had.

@DantePereyra DantePereyra force-pushed the 17.0-mig-hr_leave_attach_autovalidated branch from a6d0833 to e8fdae6 Compare January 19, 2026 07:12
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