summaryrefslogtreecommitdiff
path: root/addons/plugin
diff options
context:
space:
mode:
authorAmit Bhavsar (Open ERP) <amb@tinyerp.com>2013-05-28 14:49:41 +0530
committerAmit Bhavsar (Open ERP) <amb@tinyerp.com>2013-05-28 14:49:41 +0530
commit24848a8dccf0b8acc77b2e9fd007f613bbf1736b (patch)
tree343ca29c494e3310c1d6fa4b4f2e97a396e21c8e /addons/plugin
parent1b08798b52df8f0a3a72d116577cd7451b45b30c (diff)
parent814a121dabbbe45a1c9ee671222b3a2bf261059a (diff)
[MERGE] merge with latest trunk
bzr revid: bde@tinyerp.com-20130522095432-1sl1b6uu6ewod4md bzr revid: amb@tinyerp.com-20130528091941-wak8fnembuvewwjf
Diffstat (limited to 'addons/plugin')
-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")