summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorTurkesh Patel (Open ERP) <tpa@tinyerp.com>2013-05-28 17:57:35 +0530
committerTurkesh Patel (Open ERP) <tpa@tinyerp.com>2013-05-28 17:57:35 +0530
commita65375648bbc669308bd1ae2c9e82bf533bb6347 (patch)
tree5a6d1f31c2e8c872b176f3f1cf1a3fed3c34abeb /addons/plugin/plugin_handler.py
parente078eeeebed7a3f041e527a119e8eb51eb1c81ab (diff)
parent814a121dabbbe45a1c9ee671222b3a2bf261059a (diff)
[MRG] merge with lp:openobject-addons
bzr revid: vja@tinyerp.com-20130516054745-lmqr1uuac6wlqi70 bzr revid: tpa@tinyerp.com-20130528122735-ixcewpz9uga5hv86
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")