Timezone bug project_timesheet

Bug #1219845 reported by Hervé Martinet
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

In method create and write of class project_work (project_timesheet/project_timesheet.py), the date of a hr.analytic.timesheet is set with vals['date'][:10] from project.task.work without consideration for timezone.

If an employee works in another timezone, some works can be set in previous or next day (for example a work at monday 01:00 AM will appear on sunday timesheet if the employee tz is +02:00, cause the work is stored at sunday 23:00 PM in database (UTC)).

There should be a timezone setting on the employee object, to set the timezone to use for HR features. You cannot use the user timezone for two reasons : An employee is not always a user and the employee should not be able to change this setting itself, it is a HR data.

In a multi-timezone company this is a serious problem. The HR service should be able to choose for each employee in which timezone the timesheet should be calculated.

Environment :
System: Ubuntu 12.04 LTS
OpenERP : 7.0 launchpad serie (server revision 5058 / addons revision 9386 / web revision 4020)

tags: added: project timesheet
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.