[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
This commit is contained in:
dle@openerp.com 2013-04-29 15:05:57 +02:00
parent 56dbd6078e
commit 4a7a2d9f8f
1 changed files with 1 additions and 1 deletions

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")