summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorLucas Lefèvre <lul@odoo.com>2019-07-10 12:14:01 +0200
committerLucas Lefèvre <lul@odoo.com>2019-07-10 12:19:47 +0200
commit937acb53f6fe84912a04874ad35d18399286cbc5 (patch)
treeeb8373e48759933598b9e3fa860df92af3b46efe /addons/web/static/src/js/views/basic/basic_model.js
parentb471ec98ed64403075ff6409be6359673b34d20c (diff)
[FIX] hr_timesheet_attendance: Fix report date type
The field `date` of `hr.timesheet.attendance.report` if of type Date. However, in the SQL view, the value is wrongly set to a datetime in the database. Therefore, the value is a datetime in database, but it's considered as a date by the ORM. This can lead to a traceback. The postgreql function `date_trunc` is misused because it returns a datetime. Fix: 1. The date value from hr_attendance.checkin is a datetime => cast to date 2. The date value from account_analytic_line.date is already a date => don't do anything
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions