summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@openerp.com>2013-07-17 16:29:47 +0200
committerChristophe Simonis <chs@openerp.com>2013-07-17 16:29:47 +0200
commit24ea151a37782416b340a41dd41568fd1cf8b1bb (patch)
treeac7542598ec5307daeede4ff8cb03e2e4aba49f9 /addons/plugin/plugin_handler.py
parent9d2cf73253089464ec06c23e029ea74be5655a35 (diff)
parent7c4f374acac9b198e93b43cc6c242a2117966802 (diff)
merge upstream
bzr revid: chs@openerp.com-20130717142947-de40mn3234gt5044
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")