summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorAmit Bhavsar (Open ERP) <amb@tinyerp.com>2013-05-29 17:57:17 +0530
committerAmit Bhavsar (Open ERP) <amb@tinyerp.com>2013-05-29 17:57:17 +0530
commit7c6f6e89b5f07d42c7fe0aedd55e6a32ebbe66f5 (patch)
tree3e70511c6e273aa899c562086e3924c85c54ac3d /addons/plugin/plugin_handler.py
parentfe128d7498491ef2e67270e2dc03740699b68310 (diff)
parent814a121dabbbe45a1c9ee671222b3a2bf261059a (diff)
[MERGE] merge with latest trunk
bzr revid: vja@tinyerp.com-20130429093627-cpxq3uybwsssrqr5 bzr revid: vja@tinyerp.com-20130430115558-p1aw1zszcur21fj5 bzr revid: vja@tinyerp.com-20130517054712-9o7u266nfm8atgjv bzr revid: amb@tinyerp.com-20130529122717-lpk7tn30qek2i5yt
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")