openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #06362
[Bug 1204224] Re: [7.0] hr_timesheet_sheet - timesheet start and end are without timezone as it is date instead of datetime
Hello,
We have merged attached MP
revno: 10019 [merge]
revision-id: mat@xxxxxxxxxxx-20140428153216-4s6r5hu1ov0p0ofm
** Changed in: openobject-addons
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of OpenERP
Community Backports Team, which is subscribed to OpenERP Community
Backports (Addons).
https://bugs.launchpad.net/bugs/1204224
Title:
[7.0] hr_timesheet_sheet - timesheet start and end are without
timezone as it is date instead of datetime
Status in OpenERP Community Backports (Addons):
Fix Released
Status in OpenERP Community Backports (Addons) 7.0 series:
Fix Released
Status in OpenERP Addons (modules):
Fix Released
Bug description:
When entering attendances you might encounter serious issue as
depending on the timezone, the attendances won't go on the correct
timesheet.
This is due because a timesheet has its start and end date defined in
as DATE format. Thus it will mean timesheet start and end have no
timezone defined.
On the other hand, attendances will be in user timezone. This lead to
attendances which will be out of scope of their timesheet if the
timesheet was in local timezone too.
Now let's say that a DATE in database means the timesheet is in users'
timezone. Because a date isn't precise to be converted without
overlapping from UTC to local timezone. And because it doesn't make
sens for an Australian business to have its timesheets in UTC.
Then we need to match attendances to this local timezone when trying
to match the sheet_id on attendance. And as we have no timezone field
defined on timesheet what we can do is taking this information from
the employee.
See linked MP
To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-addons/+bug/1204224/+subscriptions