Merge lp:~openerp-dev/openobject-addons/7.0-opw-602404-jam into lp:openobject-addons/7.0
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/7.0-opw-602404-jam |
Merge into: | lp:openobject-addons/7.0 |
Diff against target: |
62 lines (+24/-3) 1 file modified
project_timesheet/project_timesheet.py (+24/-3) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-602404-jam |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+199885@code.launchpad.net |
This proposal supersedes a proposal from 2013-12-21.
Description of the change
Fixed The Incorrect Date on Timesheets Bog [Ticket#602404]
Test Case Steps: (IMP: Time Zone used PST, -8 from UTC)
1. Go to Projects, then Tasks
2. Click any task and hit the Edit button
3. Under Work Summary, click the Add An Item link
4. Enter a work summary, a time
5. For date, put a time that is later in the day, such as 8 PM. Check that the date i.e., 12/20/13
6. Hit the Save button.
7. Go to Human Resources, then My Timesheet
8. Hit the Edit button, then enter in a new line item in the Details tab (this refreshes the list to grab the entry you just made from the project task).
9. Hit Save.
10. Go to the Summary tab.
11. The item you entered into the task will show up for next day (i.e., 12/21/13).
This is issue is cause of datetime to date conversion, the Fix try to preserver the date in user timezone instaed fo coveretd to UTC, every time when we go to Datetime to date / date to datetime, we have to be careful about date.
Kindly review the fix.
--
PS: Earlier we have fixed similler issue for date to datetime.[Bug #1153107]