summaryrefslogtreecommitdiff
path: root/addons/plugin
diff options
context:
space:
mode:
authorChristophe Simonis <chs@openerp.com>2013-05-08 14:09:51 +0200
committerChristophe Simonis <chs@openerp.com>2013-05-08 14:09:51 +0200
commit01e2e03214c78613bb671cb4a819ec248c1544d8 (patch)
treebf3a10fb7de1a5945eb4d6072d465183aa7f11b2 /addons/plugin
parent4c579fe55eef6e69a9c291a0def6e21989b95829 (diff)
parent23f326328a72b411453e4de4cd60576fbcfebbf0 (diff)
[MERGE] openerp.modules.migration: do not shadow AttributeError that may occure when executing the migrate() function
bzr revid: odo@openerp.com-20130508102347-5cnvli102hgrzxml bzr revid: chs@openerp.com-20130508120951-0r17kb14yxr4r2l2
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")