Comment 2 for bug 654931

Revision history for this message
Vadim - Enapps LTD (vadim-enapps) wrote :

thanks Jay, I can see its been disabled, but I changed from monthly to weekly by modifying the target object in the window actions to hr.attendance.week.

I updated to 4243 and if I select a date range with no attendances in, then I can print out a blank report for all employees regardless of who I select.

If however I chose a date range that has data in it, then I get this:

  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/hr_attendance/report/timesheet.py", line 85, in create_xml
    week_wh[ldt.date().weekday()] = week_wh.get(ldt.date().weekday(), 0) + (dt - ldt).hours
AttributeError: 'datetime.timedelta' object has no attribute 'hours'