[FIX] Project: ids instead of id given to write
bzr revid: tde@openerp.com-20120403100556-o0tq5vuza6jvpfn4
This commit is contained in:
parent
106b1d3bd3
commit
e63bd0ee7e
|
@ -260,7 +260,7 @@ class project(osv.osv):
|
|||
proj = self.browse(cr, uid, old_project_id, context=context)
|
||||
for task in proj.tasks:
|
||||
map_task_id[task.id] = task_obj.copy(cr, uid, task.id, {}, context=context)
|
||||
self.write(cr, uid, new_project_id, {'tasks':[(6,0, map_task_id.values())]})
|
||||
self.write(cr, uid, [new_project_id], {'tasks':[(6,0, map_task_id.values())]})
|
||||
task_obj.duplicate_task(cr, uid, map_task_id, context=context)
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in New Issue