[FIX] Project copy making comitible with mail alias
bzr revid: jam@tinyerp.com-20120705063659-6rwzfmyr4jyw73kz
This commit is contained in:
@@ -333,10 +333,11 @@ class project(osv.osv):
|
||||
context['active_test'] = False
|
||||
default['state'] = 'open'
|
||||
default['tasks'] = []
|
||||
default['alias_id'] = False
|
||||
proj = self.browse(cr, uid, id, context=context)
|
||||
if not default.get('name', False):
|
||||
default['name'] = proj.name + _(' (copy)')
|
||||
|
||||
default['alias_name'] = default['name']
|
||||
res = super(project, self).copy(cr, uid, id, default, context)
|
||||
self.map_tasks(cr,uid,id,res,context)
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user