summaryrefslogtreecommitdiff
path: root/addons/plugin
diff options
context:
space:
mode:
authorHarry (OpenERP) <hmo@tinyerp.com>2012-09-13 12:47:24 +0530
committerHarry (OpenERP) <hmo@tinyerp.com>2012-09-13 12:47:24 +0530
commit989ce9204b9d6ade19a609805b7b2ba22c5d5b8b (patch)
tree5427eb34e402a2727cb93561342935faac7825eb /addons/plugin
parent0efb0d57e7aa7f79e91ac759048edc1301be8eca (diff)
[FIX] plugin: should call message_process instead of message_new for new message
bzr revid: hmo@tinyerp.com-20120913071724-re6w0fy6jspldsjh
Diffstat (limited to 'addons/plugin')
-rw-r--r--addons/plugin/plugin_handler.py2
1 files changed, 1 insertions, 1 deletions
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],