OpenERP 6.1rc1 emits working hours as local
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Medium
|
OpenERP Publisher's Warranty Team |
Bug Description
When OpenERP generates resources for import into faces for resource levelling, it emits the times as local time, while emitting and interpreting UTC times for the task start and end dates. This leads to funny offsets in the resultant data.
Attached are two patches:
0002-resource-
In doing this, I discovered that Faces does _not_ like working hours that span midnight. (Our working hours are 0900-1700, and our local time zone is UTC+10, leading to working ours of 2300-0700 UTC.) Thus, I have attached a second patch: 0001-faces-
The patch to faces has been submitted upstream:
https:/
Known issues:
- It assumes the user's local time zone, not the time zone of the resource
- It may break slightly where daylight savings time is involved.
Related branches
- Olivier Dony (Odoo): Needs Resubmitting (branch content)
-
Diff: 517 lines (+241/-55)8 files modifiedcrm/report/crm_lead_report.py (+4/-0)
crm/report/crm_lead_report_view.xml (+93/-3)
hr_timesheet_sheet/hr_timesheet_sheet_view.xml (+1/-1)
project/project.py (+7/-2)
project/project_view.xml (+3/-0)
project_long_term/project_long_term.py (+24/-2)
resource/faces/pcalendar.py (+10/-1)
resource/resource.py (+99/-46)
- Raphael Collet (OpenERP) (community): Approve
- Olivier Dony (Odoo): Pending (branch content) requested
-
Diff: 200 lines (+109/-47)2 files modifiedresource/faces/pcalendar.py (+10/-1)
resource/resource.py (+99/-46)
- Raphael Collet (OpenERP): Pending requested
-
Diff: 168 lines (+63/-10) (has conflicts)3 files modifiedproject/project.py (+9/-2)
project_long_term/project_long_term.py (+17/-5)
resource/resource.py (+37/-3)
Changed in openobject-addons: | |
assignee: | OpenERP R&D Addons Team 1 (openerp-dev-addons1) → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-addons: | |
status: | Confirmed → Fix Released |
tags: | added: needs-test |
Changed in openobject-addons: | |
status: | Fix Released → Fix Committed |
A heads-up: I've created a branch on Launchpad with my workplace's contributions for OpenERP. These two patches are included in this branch.
https:/ /code.launchpad .net/~vrt- openerp/ openobject- addons/ vrt-openerp