openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #26557
[Bug 1204224] Re: [7.0] hr_timesheet_sheet - timesheet start and end are without timezone as it is date instead of datetime
@Bill the patch was released in ocb-addons only -> https://code.launchpad.net/~ocb/ocb-addons/7.0
It hasn't been release in official addons. Thus it won't be present in nightly build.
ocb-addons is a copy of openobject-addons maintained by the community in
which there are different restrictions and in which we tend to merge
some specific fixes faster as OpenERP SA hasn't the ressources to deal
with all the waiting MP.
If you have an OPW you should use it to ask OpenERP to release this
patch earlier.
--
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/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):
Confirmed
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
References