Leaves stopped auto allocation Mailing

This commit is contained in:
Pranay 2025-05-22 10:02:00 +05:30 committed by raman
parent efc7643304
commit 995688ad8e
1 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,11 @@ class hrTimeoffAllocation(models.Model):
def _process_accrual_plans(self, date_to=False, force_period=False, log=True):
pass
def activity_update(self):
for allocation in self:
if allocation.allocation_type != 'auto_allocation':
super().activity_update()
@api.model
def _update_accrual(self):
"""