[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:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user