Comment 3 for bug 637954

Revision history for this message
James Jesudason (jamesj) wrote :

I've just tried running the report and it now generates an error:

Traceback (most recent call last):
  File "/home/jjesudason/Documents/Development/openerp6/server/bin/service/web_services.py", line 711, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/home/jjesudason/Documents/Development/openerp6/server/bin/report/interface.py", line 88, in create
    xml = self.create_xml(cr, uid, ids, datas, context)
  File "/home/jjesudason/Documents/Development/openerp6/addons/hr_timesheet/report/user_timesheet.py", line 81, in create_xml
    rml_obj=report_sxw.rml_parse(cr, uid, rpt_obj._name,context)
AttributeError: 'NoneType' object has no attribute '_name'

Checking the line in the code indicates that the "hr.holidays" object is being retrieved, even though the hr.holiday module is not a pre-requisite for hr.timesheets. I was going to install hr.holidays, but found that it has a pre-req of crm - that seems to be a huge overkill.

The implementation I'm looking at is just for project_timesheet. I can understand that it may need hr.holiday, but hr.holiday certainly shouldn't need crm installed. Right now the report doesn't work at all.

Also, the security seems wrong. None of the Employee reports appear when the HR/Manager or HR/User groups are added to the user. The Employee report seems to require Usablity Extensions group, which doesn't make sense.