[FIX] report_webkit: the registering function was passing the correct parser to the Report class, but in fact, its default was wrong (None would never work).

bzr revid: vmt@openerp.com-20130325123644-v3a9p6oj8qh2a6tb
This commit is contained in:
Vo Minh Thu
2013-03-25 13:36:44 +01:00
parent b4fba9c43f
commit 3bee1cc4cd
+3 -3
View File
@@ -116,12 +116,12 @@ class WebKitParser(report_sxw):
"""Custom class that use webkit to render HTML reports
Code partially taken from report openoffice. Thanks guys :)
"""
def __init__(self, name, table, rml=False, parser=False,
header=True, store=False):
def __init__(self, name, table, rml=False, parser=rml_parse,
header=True, store=False, register=True):
self.parser_instance = False
self.localcontext = {}
report_sxw.__init__(self, name, table, rml, parser,
header, store)
header, store, register=register)
def get_lib(self, cursor, uid):
"""Return the lib wkhtml path"""