[FIX] report engine: context argument was passed at a wrong position. Now it's passed as a named argument.

bzr revid: olt@tinyerp.com-20090821070123-34lk0jtabi6wxlkw
This commit is contained in:
Olivier Laurent 2009-08-21 09:01:23 +02:00
parent 3b720c0435
commit 58aa4e10be
1 changed files with 3 additions and 1 deletions

View File

@ -536,7 +536,9 @@ class report_sxw(report_rml, preprocess.report):
sxw_io.close()
return (final_op, report_type)
def create_single_html2html(self, cr, uid, ids, data, report_xml, context={}):
def create_single_html2html(self, cr, uid, ids, data, report_xml, context=None):
if not context:
context = {}
context = context.copy()
report_type = 'html'
context['parents'] = html_parents