[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:
parent
56dbd6078e
commit
4a7a2d9f8f
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue