From 989ce9204b9d6ade19a609805b7b2ba22c5d5b8b Mon Sep 17 00:00:00 2001 From: "Harry (OpenERP)" Date: Thu, 13 Sep 2012 12:47:24 +0530 Subject: [FIX] plugin: should call message_process instead of message_new for new message bzr revid: hmo@tinyerp.com-20120913071724-re6w0fy6jspldsjh --- addons/plugin/plugin_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/plugin/plugin_handler.py') diff --git a/addons/plugin/plugin_handler.py b/addons/plugin/plugin_handler.py index 8f0fdc1ad8e..dee2cac117d 100644 --- a/addons/plugin/plugin_handler.py +++ b/addons/plugin/plugin_handler.py @@ -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], -- cgit v1.2.3