diff --git a/addons/hr_holidays/report/hr_leave_report_calendar.py b/addons/hr_holidays/report/hr_leave_report_calendar.py index 3f84a585a73..0f26167a9dc 100644 --- a/addons/hr_holidays/report/hr_leave_report_calendar.py +++ b/addons/hr_holidays/report/hr_leave_report_calendar.py @@ -33,6 +33,8 @@ class LeaveReportCalendar(models.Model): is_hatched = fields.Boolean('Hatched', readonly=True) is_striked = fields.Boolean('Striked', readonly=True) + is_absent = fields.Boolean(related='employee_id.is_absent') + def init(self): tools.drop_view_if_exists(self._cr, 'hr_leave_report_calendar') self._cr.execute("""CREATE OR REPLACE VIEW hr_leave_report_calendar AS diff --git a/addons/hr_holidays/report/hr_leave_report_calendar.xml b/addons/hr_holidays/report/hr_leave_report_calendar.xml index b243cd308a0..efc317d5e1e 100644 --- a/addons/hr_holidays/report/hr_leave_report_calendar.xml +++ b/addons/hr_holidays/report/hr_leave_report_calendar.xml @@ -50,7 +50,7 @@ domain="[('employee_id.member_of_department', '=', True)]" help="My Department"/> - +