[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
This commit is contained in:
Christophe Simonis
2013-05-08 14:09:51 +02:00
3 changed files with 27 additions and 34 deletions
+1 -1
View File
@@ -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")