Wrong week displayed in hr_timesheet_sheet
Bug #1215895 reported by
brainchild
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Medium
|
OpenERP R&D Addons Team 3 |
Bug Description
When i go to [Human Resources] -> [My Current Timesheet], I see the wrong week number in the title. For example this week is the 34th of this year but 33 is displayed.
I found out why: Python starts with 0 (zero) when fetching the current week by using strftime('%U').
I fixed this by returning the following value in hr_timesheet_
[code]return [(r['id'], _('Week ')+str(
for r in self.read(cr, uid, ids, ['date_from'],
I attached a module for fixing this issue.
Related branches
To post a comment you must log in.
Hello,
Thanks for reporting this.
Yes, You are right, I am facing same issue with this.
Regards,