Skip to content

Commit

Permalink
[FIX] hr_holidays: correct fields declaration of hr.leave.report.cale…
Browse files Browse the repository at this point in the history
…ndar

The field `duration` was still declared but has actually been removed
from the SQL view with d2238de.

Avoid an error when trying to read this field.

Error spotted by odoo/upgrade#3511

closes odoo#91250

X-original-commit: adfc1ac
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: Christophe Simonis <chs@odoo.com>
  • Loading branch information
KangOl committed May 13, 2022
1 parent c8a26ba commit dbda9fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/hr_holidays/report/hr_leave_report_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dbda9fc

Please sign in to comment.