summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorsgo@tinyerp.com <>2013-06-05 12:37:37 +0530
committersgo@tinyerp.com <>2013-06-05 12:37:37 +0530
commitd3c7f6becffc7830f8f4c26b6cef7842d4a8ac4a (patch)
tree6a21e7cca54f5eb1fedada25cd4d44bbf2f4c129 /addons/plugin/plugin_handler.py
parent9f35da63763685c578031dcefe652cc95d8e3dd1 (diff)
parent5cc8c30adfeccc6db22ebf7487b8e4ebdbe10423 (diff)
[MERGE]sync with trunk
bzr revid: sgo@tinyerp.com-20130605070737-5sdnhqzysi1lcnnj
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")