diff options
| author | dle@openerp.com <> | 2013-04-29 15:05:57 +0200 |
|---|---|---|
| committer | dle@openerp.com <> | 2013-04-29 15:05:57 +0200 |
| commit | 4a7a2d9f8f43f25e82ed2e5c5a1ae19ffc39b5f8 (patch) | |
| tree | 176d482f4d7fc96f4530f9d4b0a3d2b9f6b03997 /addons/plugin | |
| parent | 56dbd6078e24aafce61153f144934b40bcd930a3 (diff) | |
[FIX]plugin: plugin_handler, push_message, if model is res.partner then we set the type to 'comment' instead of 'email' to avoid the behaviour in mail/res_partner.py message_post
bzr revid: dle@openerp.com-20130429130557-0huoifszlg6g56ny
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 f13fc255a6d..aa389611a57 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") |
