summaryrefslogtreecommitdiff
path: root/addons/plugin/plugin_handler.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2013-05-22 12:34:26 +0200
committerThibault Delavallée <tde@openerp.com>2013-05-22 12:34:26 +0200
commitfaefb9fad17d02a7da941703c92e5651fb788c25 (patch)
treecff27accebc3ee6be8322cbd933f67f5f65d8837 /addons/plugin/plugin_handler.py
parentf3f2d72e0454c4decbc0d28357e5627520a449aa (diff)
parent0d01d958fa5cc28bdc9cf1fc13e0c9dbe530d78f (diff)
[MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130522103426-wjn0ttqdbf72g713
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")