summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2013-05-22 16:32:06 +0200
committerThibault Delavallée <tde@openerp.com>2013-05-22 16:32:06 +0200
commit3f5c73808421dc99520e216abd12bf9e3a1104f1 (patch)
tree84dba3fed3d754052d61972b55d128b74c931b2f /addons/plugin/plugin_handler.py
parentc4a019bbfddd27a46a780af5f1506e4364e2d28f (diff)
parent3c0b65f5d10785b543a67421a654ffd0244952d6 (diff)
[MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130522110325-hos9ocph7yo9ae7w bzr revid: tde@openerp.com-20130522143206-uv1f6lj6xsenzj6u
Diffstat (limited to 'addons/plugin/plugin_handler.py')
-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 c278db2f19a..fc6c874fab5 100644
--- a/addons/plugin/plugin_handler.py
+++ b/addons/plugin/plugin_handler.py
@@ -110,7 +110,7 @@ class plugin_handler(osv.osv_memory):
model_obj.message_post(cr, uid, [res_id],
body=msg.get('body'),
subject=msg.get('subject'),
- type='email',
+ type='comment' if model == 'res.partner' else 'email',
parent_id=msg.get('parent_id'),
attachments=msg.get('attachments'))
notify = _("Mail successfully pushed")