summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorAmit Bhavsar (Open ERP) <amb@tinyerp.com>2013-05-28 11:49:00 +0530
committerAmit Bhavsar (Open ERP) <amb@tinyerp.com>2013-05-28 11:49:00 +0530
commit5660048c29a5467cee5190017222050a2d8f9e57 (patch)
treee85de7d6daa7c5a614368f1b807a65a6c0e55c8b /addons/plugin/plugin_handler.py
parentf19775e62779775de30d170fbf30673cc1314a05 (diff)
parent814a121dabbbe45a1c9ee671222b3a2bf261059a (diff)
[MERGE] merge with latest trunk
bzr revid: amb@tinyerp.com-20130528061900-3374j4pan7aq0yu3
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")