summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorRobot Odoo <xmo+roboto@odoo.com>2019-07-10 18:06:43 +0200
committerGitHub <noreply@github.com>2019-07-10 18:06:43 +0200
commitba28a0a1b1b6f5c98935bb2e3e3b61c50141e71e (patch)
treec80b7281fbf697ce7b6bf7a75c924253d7e9f1f3 /addons/web/static/src/js/views/basic
parentcd7d3a7671e07f827902b365378296d18413cec3 (diff)
parent937acb53f6fe84912a04874ad35d18399286cbc5 (diff)
[FIX] hr_timesheet_attendance: Disable pivot linking and use correct field type
[FIX] hr_timesheet_attendance: disable link from timesheet attendance report --------- Before this commit, linking was enable for pivot view of hr.timesheet.attendance.report Opening the record is useless since all information is in the pivot view. Also, no list view is defined, therefore an empty list view is opened. This commit disable linking. [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 closes #34046 #34612 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#34741 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions