object_timesheet : Wrong type definition of the hr_analytic_timesheet_id of the object project.task.work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi!!
In the object_timesheet module :
The hr_analytic_
Traceback (most recent call last):
File "/home/
result = LocalService(
File "/home/
return getattr(self, method)(*params)
File "/home/
res = service.execute(db, uid, object, method, *args)
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
hr_
File "/home/
self._check(cr, uid, ids)
File "/home/
if att.sheet_id and att.sheet_id.state not in ('draft', 'new'):
File "/home/
return self[name]
File "/home/
datas = self._table.
File "/home/
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/
res2 = self._columns[
File "/home/
res = self._fnct(obj, cr, user, ids, name, self._arg, context)
File "/home/
GROUP BY l.id')
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
ProgrammingError: ERREUR: erreur de syntaxe sur ou près de « ) »
LINE 1: ...r_id = al.user_id) WHERE l.id in () ...
Furthermore, the write function of the project.task.work is corrupted :
vals_line = {}
task = self.pool.
line_id = task.hr_
# in case,if a record is deleted from timesheet,but we change it from tasks!
if line_id in list_avail_ids:
obj = self.pool.
if 'name' in vals:
if 'user_id' in vals:
if 'date' in vals:
if 'hours' in vals:
return super(project_
We need to process all the ids wherease juste the first one is treated before calling super(project_
Changed in openobject-addons: | |
milestone: | none → 6.0 |
Hello Sam,
This has been fixed by subsequent commits.
Thanks for your interest.