[7.0] timesheet_task - 'NoneType' object has no attribute error when assigning to an invoice analytic lines having task without projects
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HR - Timesheet Management |
New
|
Undecided
|
Unassigned |
Bug Description
When associating it to an invoice if one of your analytic line is linked to a task which has no project_id this will raise an AttributeError Exception.
Here comes the traceback:
Server Traceback (most recent call last):
File "/.../webclient
return openerp.
File "/.../server/
result = ExportService.
File "/.../server/
res = fn(db, uid, *params)
File "/.../server/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/.../server/
return f(self, dbname, *args, **kwargs)
File "/.../server/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/.../server/
return getattr(object, method)(cr, uid, *args, **kw)
File "/.../common_
aal_
File "/.../hr-
return super(AccountAn
File "/.../addons/
context=
File "/.../server/
self.
File "/.../server/
if not fun(self, cr, uid, ids):
File "/.../hr-
if line.task_
AttributeError: 'NoneType' object has no attribute 'id'
description: | updated |
summary: |
[7.0] timesheet_task - 'NoneType' object has no attribute error when - assigning analytic lines having task without projects + assigning to an invoice analytic lines having task without projects |
description: | updated |