summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2013-05-24 12:05:33 +0200
committerChristophe Matthieu <chm@openerp.com>2013-05-24 12:05:33 +0200
commit096962342a51292381cbb9cbb9a1c587038623d5 (patch)
tree6d43790c814dd8931123e0182fbd6c7ad16cb91c /addons/plugin/plugin_handler.py
parent2f73d494d2421618b77a98a764efe10677e4c00b (diff)
parent078424d52214350337e9eedfb664c3565f730822 (diff)
[MERGE] from trunk
bzr revid: chm@openerp.com-20130522145042-3ril2zvogqs55ako bzr revid: chm@openerp.com-20130524100533-fc0c7l47hb8j4xib
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")