From ae9c126ab591e5c0978270770122197e8498f65b Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Thu, 1 Dec 2011 16:14:23 +0100 Subject: [FIX] mail: wrong passing of parameter context bzr revid: rco@openerp.com-20111201151423-dmh2539fnc31q0zh --- addons/mail/wizard/mail_compose_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/mail/wizard/mail_compose_message.py') diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py index 93bf0b004d8..f5906d2b186 100644 --- a/addons/mail/wizard/mail_compose_message.py +++ b/addons/mail/wizard/mail_compose_message.py @@ -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'} -- cgit v1.2.3