[REF] Partner : copy() improved

lp bug: https://launchpad.net/bugs/463415 fixed

bzr revid: jvo@tinyerp.com-20091030121106-tyl0c5azlu1dll8k
This commit is contained in:
Jay (Open ERP) 2009-10-30 17:41:06 +05:30
parent db8f833229
commit 9712973826
1 changed files with 2 additions and 2 deletions

View File

@ -166,9 +166,9 @@ class res_partner(osv.osv):
'customer': lambda *a: 1,
'category_id': _default_category,
}
def copy(self, cr, uid, id, default=None, context={}):
def copy(self, cr, uid, id, default={}, context={}):
name = self.read(cr, uid, [id], ['name'])[0]['name']
default.update({'name': name+' (copy)', 'events':[]})
default.update({'name': name+ _(' (copy)'), 'events':[]})
return super(res_partner, self).copy(cr, uid, id, default, context)
def _check_ean_key(self, cr, uid, ids):