summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorParamjit Singh Sahota <psa@tinyerp.com>2013-05-27 18:47:34 +0530
committerParamjit Singh Sahota <psa@tinyerp.com>2013-05-27 18:47:34 +0530
commit1c7ce4aa37c409611d55e814b87dde9c38868b5d (patch)
treee9876640246a58503b78ff28b1f25d39df1f3ade /addons/plugin/plugin_handler.py
parent4847ba79975bce4e1cec853c88021fa2cc30ed2f (diff)
parent0dc0d9f83c8db94b3679beb06b224242d4c695fd (diff)
[MERGE] Merged lp:openobject-addons.
bzr revid: psa@tinyerp.com-20130522064934-9ief76qy3lynwqt9 bzr revid: psa@tinyerp.com-20130527131734-mnqn4fir6b3pzogt
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")