summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorParamjit Singh Sahota <psa@tinyerp.com>2013-05-24 11:56:34 +0530
committerParamjit Singh Sahota <psa@tinyerp.com>2013-05-24 11:56:34 +0530
commitfb43e7a3ad1aae95409a89abeb0b46478a163b46 (patch)
treed80f921427f9c4f4aef127ca1532a3971b4939f6 /addons/plugin/plugin_handler.py
parent13132d98df2aea9dd270207e8f5371ef21af7393 (diff)
parent078424d52214350337e9eedfb664c3565f730822 (diff)
[MERGE] Merged lp:openobject-addons.
bzr revid: psa@tinyerp.com-20130522062056-34x4zuj4pibjuvs2 bzr revid: psa@tinyerp.com-20130524062634-zf33lplw4plp03h2
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")