summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorRavish (Open ERP) <rmu@tinyerp.com>2013-05-16 10:44:37 +0530
committerRavish (Open ERP) <rmu@tinyerp.com>2013-05-16 10:44:37 +0530
commitfa9f18359fccc836a460736d2d07fe9b9ba0463a (patch)
tree24f77e99fd00eee9f8ed833b4ad45aee22f628a7 /addons/plugin/plugin_handler.py
parentdd81c8f9c340ed78db09f3c9c0b273ad86faa056 (diff)
parent1bb278384c4a3e6053a8f9072f4515d2e42d0455 (diff)
[merge] with lateset 7.0
bzr revid: rmu@tinyerp.com-20130516051437-1bdcjgxey3efpw31
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 f13fc255a6d..aa389611a57 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")