Skip to content

Commit

Permalink
[FIX] remove resource leaves when resetting to draft
Browse files Browse the repository at this point in the history
fixes #83
  • Loading branch information
hbrunn committed Dec 18, 2023
1 parent 9b9ab76 commit 3a0c2b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions verdigado_attendance/models/hr_leave.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def action_draft(self):
self.read([])
for this in self:
this._cache["state"] = "confirm"
self.sudo()._remove_resource_leave()
return super().action_draft()

def unlink(self):
Expand Down

0 comments on commit 3a0c2b2

Please sign in to comment.