Weekly timesheet created on monday covers two weeks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 3 |
Bug Description
Hi,
Set the company's timesheet range to 'Week'. Create a timesheet on Monday. The new timesheet covers a period of two weeks, starting from the Monday a week before.
Culprit is (datetime.today() + relativedelta(
>>> from datetime import datetime
>>> from dateutil.
>>> datetime(2011, 11, 28, 13, 38, 3, 560694) + relativedelta(
datetime.
Instead, use (datetime.today() + relativedelta(
>>> datetime(2011, 11, 28, 13, 38, 3, 560694) + relativedelta(
datetime.
Reproducable in 6.0 and trunk.
Cheers,
Stefan.
Related branches
- Purnendu Singh (OpenERP) (community): Approve
- qdp (OpenERP): Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedhr_timesheet_sheet/hr_timesheet_sheet.py (+1/-1)
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
milestone: | none → 6.1 |
Hello Stefan,
I have checked your issue with latest stable and trunk both, but all are working fine.
I have attached a video for your reference so would you please check it and notify us where you faced the problem.
Thanks and waiting for your reply!