From dbda9fc4eda5f9ffbaa2a32c3c4a9e238f12f76e Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 12 May 2022 09:03:57 +0000 Subject: [PATCH] [FIX] hr_holidays: correct fields declaration of hr.leave.report.calendar The field `duration` was still declared but has actually been removed from the SQL view with d2238de57630d58c4913ab44746476b83492c72f. Avoid an error when trying to read this field. Error spotted by odoo/upgrade#3511 closes odoo/odoo#91250 X-original-commit: adfc1ac3fbef180750e42551dbf902dec2bb2967 Signed-off-by: Yannick Tivisse (yti) Signed-off-by: Christophe Simonis --- addons/hr_holidays/report/hr_leave_report_calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_holidays/report/hr_leave_report_calendar.py b/addons/hr_holidays/report/hr_leave_report_calendar.py index 5cc3a966dd768..f286668eaefe9 100644 --- a/addons/hr_holidays/report/hr_leave_report_calendar.py +++ b/addons/hr_holidays/report/hr_leave_report_calendar.py @@ -16,7 +16,7 @@ class LeaveReportCalendar(models.Model): start_datetime = fields.Datetime(string='From', readonly=True) stop_datetime = fields.Datetime(string='To', readonly=True) tz = fields.Selection(_tz_get, string="Timezone", readonly=True) - duration = fields.Float(string='Duration', readonly=True) + duration = fields.Float(string='Duration', readonly=True, store=False) employee_id = fields.Many2one('hr.employee', readonly=True) department_id = fields.Many2one('hr.department', readonly=True) job_id = fields.Many2one('hr.job', readonly=True)