Robot Odoo ba28a0a1b1 [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>
2019-07-10 18:06:43 +02:00
…
…
…
…
…

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

Then follow the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%