From 995688ad8e206d3fd91587b8f4461663c4bee1f6 Mon Sep 17 00:00:00 2001 From: Pranay Date: Thu, 22 May 2025 10:02:00 +0530 Subject: [PATCH] Leaves stopped auto allocation Mailing --- addons_extensions/hr_timeoff_extended/models/hr_timeoff.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons_extensions/hr_timeoff_extended/models/hr_timeoff.py b/addons_extensions/hr_timeoff_extended/models/hr_timeoff.py index 2ccfee57d..593c2a541 100644 --- a/addons_extensions/hr_timeoff_extended/models/hr_timeoff.py +++ b/addons_extensions/hr_timeoff_extended/models/hr_timeoff.py @@ -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): """