From 58aa4e10be89b28d3eba888623849fe1a07ecd30 Mon Sep 17 00:00:00 2001 From: Olivier Laurent Date: Fri, 21 Aug 2009 09:01:23 +0200 Subject: [PATCH] [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 --- bin/report/report_sxw.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/report/report_sxw.py b/bin/report/report_sxw.py index a5debbd5c0a..539b8990485 100644 --- a/bin/report/report_sxw.py +++ b/bin/report/report_sxw.py @@ -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