summaryrefslogtreecommitdiff
path: root/addons/plugin
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2013-05-22 10:30:12 +0200
committerThibault Delavallée <tde@openerp.com>2013-05-22 10:30:12 +0200
commit8aa85c2523a87db7555f1ca9dbda6e5cbc3306c9 (patch)
treecac97d1957f928e077fe4d6fc06387e095831f1f /addons/plugin
parentd51cf606167f870bb6be260ef494fc96dea05b09 (diff)
parent176481a97081644e40e3446d9db4ff685b043310 (diff)
[FORWARD] Forward port of addons until revision 8711
bzr revid: tde@openerp.com-20130521133807-5n97jep45f3lf6uq bzr revid: tde@openerp.com-20130522083012-4yry4ht2943sjatn
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")