[FIX] mail: wrong passing of parameter context

bzr revid: rco@openerp.com-20111201151423-dmh2539fnc31q0zh
This commit is contained in:
Raphael Collet 2011-12-01 16:14:23 +01:00
parent e3c680eb31
commit ae9c126ab5
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ class mail_compose_message(osv.osv_memory):
attachments=attachment, references=references, res_id=int(mail.res_id),
subtype=mail.subtype, headers=headers, context=context)
# in normal mode, we send the email immediately, as the user expects us to (delay should be sufficiently small)
mail_message.send(cr, uid, [msg_id], context)
mail_message.send(cr, uid, [msg_id], context=context)
return {'type': 'ir.actions.act_window_close'}