summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorParamjit Singh Sahota <psa@tinyerp.com>2013-05-24 10:17:19 +0530
committerParamjit Singh Sahota <psa@tinyerp.com>2013-05-24 10:17:19 +0530
commitf12c4b2e8ca7447301486386c8e557b877890bb3 (patch)
tree06361b2d88d95a5d8bcd91bcfcefa4931c1d96ef /addons/plugin/plugin_handler.py
parent4009942cf6128e662c9d2c589f1519121082a908 (diff)
parent078424d52214350337e9eedfb664c3565f730822 (diff)
[MERGE] Merged lp:openobject-addons.
bzr revid: psa@tinyerp.com-20130522114502-6w2unbb2eb5x3hxb bzr revid: psa@tinyerp.com-20130523051153-lbazjc3px9suxr9n bzr revid: psa@tinyerp.com-20130524044719-zfmsyxxqhaxlpxpb
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")