[FIX] project : copying project gives traceback
bzr revid: jam@tinyerp.com-20110405060210-lbz2xobgqw4ga3dj
This commit is contained in:
parent
838512af0b
commit
28897de5cd
|
@ -208,6 +208,7 @@ class project(osv.osv):
|
|||
default = default or {}
|
||||
context['active_test'] = False
|
||||
default['state'] = 'open'
|
||||
proj = self.browse(cr, uid, id, context=context)
|
||||
if not default.get('name', False):
|
||||
default['name'] = proj.name + _(' (copy)')
|
||||
|
||||
|
|
Loading…
Reference in New Issue