Leaves stopped auto allocation Mailing

This commit is contained in:
Pranay 2025-05-22 10:02:00 +05:30
parent e734c1d13c
commit dc792473fe
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): def _process_accrual_plans(self, date_to=False, force_period=False, log=True):
pass pass
def activity_update(self):
for allocation in self:
if allocation.allocation_type != 'auto_allocation':
super().activity_update()
@api.model @api.model
def _update_accrual(self): def _update_accrual(self):
""" """