Review: Needs Fixing
First problem : 
new_ids = [task.id for task in new_project.tasks]
old_ids = [task.id for task in proj.tasks]


This work only if we can guarantee at 100% of the case that the copy will be in 
the same order, that is not the case.  you have to copy task one by one and 
remind the mapping there



relate = self.search(cr, uid, 
[('project_id','=',project_id),('name','=',child.name)])
What's happen if two task have the same name in the same project but only one 
is a child ? 
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-713367-jam/+merge/51871
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-713367-jam.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to