bugfixed in copy partner with events
bzr revid: hda@hda-20090406113027-qx4zbbzxe1e7ahay
This commit is contained in:
@@ -166,7 +166,7 @@ class res_partner(osv.osv):
|
||||
}
|
||||
def copy(self, cr, uid, id, default=None, context={}):
|
||||
name = self.read(cr, uid, [id], ['name'])[0]['name']
|
||||
default.update({'name': name+' (copy)'})
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user