← Back to team overview

openerp-india team mailing list archive

[Bug 1219845] [NEW] Timezone bug project_timesheet

 

Public bug reported:

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)

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1219845

Title:
  Timezone bug project_timesheet

Status in OpenERP Addons (modules):
  New

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1219845/+subscriptions


Follow ups

References