From b139c5819dff7eb89762d50e561fe472a4d6f6e8 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Fri, 4 Dec 2015 09:59:09 +0100 Subject: [PATCH] [FIX] email_template: allow override of in new API If context is passed as a non-keyword argument to a new-API override of this method, it ends up as the positional fields argument. Closes #9911 --- addons/email_template/email_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/email_template/email_template.py b/addons/email_template/email_template.py index a4f8370d00a..f395fdfc503 100644 --- a/addons/email_template/email_template.py +++ b/addons/email_template/email_template.py @@ -583,6 +583,6 @@ class email_template(osv.osv): return self.get_email_template_batch(cr, uid, template_id, [record_id], context)[record_id] def generate_email(self, cr, uid, template_id, res_id, context=None): - return self.generate_email_batch(cr, uid, template_id, [res_id], context)[res_id] + return self.generate_email_batch(cr, uid, template_id, [res_id], context=context)[res_id] # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: