upgrade hr_holidays_community and hr delegation

This commit is contained in:
esraa 2025-12-10 12:46:07 +02:00
parent 94cbf57720
commit 0160be7896
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ class Employee(models.Model):
employee.current_leave_state = leave_data.get(employee.id, {}).get('current_leave_state')
employee.current_leave_id = leave_data.get(employee.id, {}).get('current_leave_id')
# Assign is_absent for compatibility with standard hr_holidays module
employee.is_absent = leave_data.get(employee.id) and leave_data.get(employee.id).get('current_leave_state') == 'validate'
employee.is_absent_today = leave_data.get(employee.id) and leave_data.get(employee.id).get('current_leave_state') == 'validate'
def _compute_leaves_count(self):
leaves = self.env['hr.holidays'].read_group([