[FIX] project : improved the _() code for better translation

bzr revid: jam@tinyerp.com-20110218103107-ayu4zzly3msnh3bd
This commit is contained in:
Jigar Amin
2011-02-18 16:01:07 +05:30
parent da004afcc8
commit e0c3812e01
+2 -1
View File
@@ -368,7 +368,8 @@ class task(osv.osv):
if not default.get('name', False):
default['name'] = self.browse(cr, uid, id, context=context).name or ''
if not context.get('copy',False):
default.update({'name':(default.get('name','')+_(" (copy)"))})
new_name = _("%s (copy)")%default.get('name','')
default.update({'name':new_name})
return super(task, self).copy_data(cr, uid, id, default, context)
def _check_dates(self, cr, uid, ids, context=None):