summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorMartin Trigaux <mat@openerp.com>2013-05-23 09:34:54 +0200
committerMartin Trigaux <mat@openerp.com>2013-05-23 09:34:54 +0200
commit951e9b14f605b9bd2c50e2104b565096abe63b1e (patch)
tree76eab03f7419698f2186ecd3f0cc5da2e2da6c51 /addons/plugin/plugin_handler.py
parent2b5069f7c8cc7d1d3a7640872e487d6bd7e37cdc (diff)
parente16f5b6e11e924c9871db6001ae052c4b34a7d0a (diff)
[MERGE] sync with latest trunk
bzr revid: mat@openerp.com-20130523073454-39splxsbbxydzq80
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")