[FIX] project : copying project gives traceback

bzr revid: jam@tinyerp.com-20110405060210-lbz2xobgqw4ga3dj
This commit is contained in:
Jigar Amin 2011-04-05 11:32:10 +05:30
parent 838512af0b
commit 28897de5cd
1 changed files with 1 additions and 0 deletions

View File

@ -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)')