[IMP] improve crm_lead
bzr revid: fka@tinyerp.com-20120809111806-k79sserip4oyzo1r
This commit is contained in:
@@ -277,7 +277,7 @@ class crm_lead(base_stage, osv.osv):
|
||||
obj_id = super(crm_lead, self).create(cr, uid, vals, context)
|
||||
obj = self.browse(cr, uid, obj_id, context)
|
||||
if obj.user_id:
|
||||
self.message_subscribe(cr, uid, ids, obj.user_id.id, context = context)
|
||||
self.message_subscribe(cr, uid, [obj_id], [obj.user_id.id], context = context)
|
||||
self.create_send_note(cr, uid, [obj_id], context=context)
|
||||
return obj_id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user