[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
This commit is contained in:
Stefan Rijnhart 2015-12-04 09:59:09 +01:00 committed by Martin Trigaux
parent 43482d2d1e
commit b139c5819d
1 changed files with 1 additions and 1 deletions

View File

@ -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: