diff options
| author | Christophe Simonis <chs@openerp.com> | 2013-05-08 14:09:51 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@openerp.com> | 2013-05-08 14:09:51 +0200 |
| commit | 01e2e03214c78613bb671cb4a819ec248c1544d8 (patch) | |
| tree | bf3a10fb7de1a5945eb4d6072d465183aa7f11b2 /addons/plugin | |
| parent | 4c579fe55eef6e69a9c291a0def6e21989b95829 (diff) | |
| parent | 23f326328a72b411453e4de4cd60576fbcfebbf0 (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.py | 2 |
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") |
