[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:
parent
43482d2d1e
commit
b139c5819d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue