summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorRandhir Mayatra (OpenERP) <rma@tinyerp.com>2013-05-31 14:30:39 +0530
committerRandhir Mayatra (OpenERP) <rma@tinyerp.com>2013-05-31 14:30:39 +0530
commit0adb4630388362d3832da0ecb3c788580f13ffd1 (patch)
tree512dae430b32bbd2799c9ddec89c78733f1338b8 /addons/plugin/plugin_handler.py
parentde149b50f98c5f7c8f6e0c9e2a01c3f1843c062b (diff)
parentc40010d9a365a9f71ada0a11fd25b36f9fa4f71f (diff)
[MERGE] merge with latest trunk
bzr revid: rma@tinyerp.com-20130531090039-ar87vekp2kfcw1xs
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")