[FIX] plugin: should call message_process instead of message_new for new message

bzr revid: hmo@tinyerp.com-20120913071724-re6w0fy6jspldsjh
This commit is contained in:
Harry (OpenERP)
2012-09-13 12:47:24 +05:30
parent 0efb0d57e7
commit 989ce9204b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ class plugin_handler(osv.osv_memory):
if model == 'res.partner':
notify = 'User the Partner button to create a new partner'
else:
res_id = model_obj.message_new(cr, uid, msg)
res_id = model_obj.message_process(cr, uid, model, email)
notify = "Mail successfully pushed, a new %s has been created " % model
else:
model_obj.message_post(cr, uid, [res_id],