summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorParth Gajjar (Open ERP) <pga@tinyerp.com>2013-06-06 10:28:52 +0530
committerParth Gajjar (Open ERP) <pga@tinyerp.com>2013-06-06 10:28:52 +0530
commit4e50ff41079764954d4223d9fdd676b98a6c1cf8 (patch)
tree08fc9b213b81ee90895b9c6c57ffa58e32c59b3c /addons/plugin/plugin_handler.py
parented3509568d0212a976344a626892bc56b666fd57 (diff)
parent0298755c67d9cc4dbbaa21e36f9ad9ba63a1048f (diff)
merge with lp:addons
bzr revid: pga@tinyerp.com-20130606045852-di9t2th0bugpjz1q
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")