[FIX] project.copy(): avoid preparing useless children data to copy, as they are discared in analytic.copy. Duplicating children is handled by duplicate_template().
bzr revid: odo@openerp.com-20140206172702-vxdhemegc4yoqzsv
This commit is contained in:
parent
fab4ad5913
commit
9ac5d91fdb
|
@ -368,6 +368,11 @@ class project(osv.osv):
|
|||
default['state'] = 'open'
|
||||
default['line_ids'] = []
|
||||
default['tasks'] = []
|
||||
|
||||
# Don't prepare (expensive) data to copy children (analytic accounts),
|
||||
# they are discarded in analytic.copy(), and handled in duplicate_template()
|
||||
default['child_ids'] = []
|
||||
|
||||
default.pop('alias_name', None)
|
||||
default.pop('alias_id', None)
|
||||
proj = self.browse(cr, uid, id, context=context)
|
||||
|
|
Loading…
Reference in New Issue