summaryrefslogtreecommitdiff
path: root/addons/plugin
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2012-08-17 09:02:18 +0200
committerFabien Pinckaers <fp@tinyerp.com>2012-08-17 09:02:18 +0200
commitcb944d66ea941a3f80025f56d576677fa9d1c59c (patch)
tree870b3b829c7aa8846c28b87ab960b46303474e27 /addons/plugin
parent960e4ba5412ae0646667803b4b97de9a2e10039a (diff)
[IMP] mail message
bzr revid: fp@tinyerp.com-20120817070218-rp1ssuhwnf8raitf
Diffstat (limited to 'addons/plugin')
-rw-r--r--addons/plugin/plugin_handler.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/plugin/plugin_handler.py b/addons/plugin/plugin_handler.py
index e497f902dc2..aaf54d1ac2b 100644
--- a/addons/plugin/plugin_handler.py
+++ b/addons/plugin/plugin_handler.py
@@ -108,8 +108,7 @@ class plugin_handler(osv.osv_memory):
else:
if model == 'res.partner':
model_obj = self.pool.get('mail.thread')
- res = self.pool.get(model).browse(cr, uid, [res_id])
- model_obj.message_append_dict(cr, uid, res, msg)
+ model_obj.message_append_note(cr, uid, [res_id], body=msg)
notify = "Mail succefully pushed"
url = self._make_url(cr, uid, res_id, model)