summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorbth-openerp <bth@tinyerp.com>2013-05-23 10:55:42 +0530
committerbth-openerp <bth@tinyerp.com>2013-05-23 10:55:42 +0530
commit4d4385d8ca5fd2e5ab3a3cf51ccd3bb04cf3c064 (patch)
tree74c9ca6eef41aed6a11445ccb92c2b7c6f04d053 /addons/plugin/plugin_handler.py
parent6850809fab15d6d4093a5f51282d2965e1c023f7 (diff)
parente16f5b6e11e924c9871db6001ae052c4b34a7d0a (diff)
[MERGE]Merge lp:openobject-addons.
bzr revid: bth@tinyerp.com-20130523052542-y1gs9h3na12pxlrr
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")