[IMP]allow_negative_leave_and_allocation:display negative holidays in dashbaord

This commit is contained in:
2025-01-30 12:09:34 +01:00
committed by Stéphan Sainléger
parent 2836fc8e2f
commit f85aab4edf
3 changed files with 20 additions and 1 deletions

View File

@@ -18,3 +18,8 @@ class HolidaysType(models.Model):
for holiday_type in res:
if not holiday_type.has_valid_allocation:
holiday_type.has_valid_allocation = holiday_type.allows_negative
def _get_days_request(self):
res = super()._get_days_request()
res[1]['allows_negative'] = self.allows_negative
return res