[FIX] report_webkit: typo that made it impossible to register a webkit report

bzr revid: nicolas.vanhoren@openerp.com-20130225150306-uo9r7ua7iqj57255
This commit is contained in:
niv-openerp 2013-02-25 16:03:06 +01:00
parent 59ac14af71
commit c8258999f1
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def register_report(name, model, tmpl_path, parser=rml_parse):
"""Register the report into the services"""
name = 'report.%s' % name
if name in openerp.report.interface.report_int._reports:
service = openerp.report.interface.report_int[name]
service = openerp.report.interface.report_int._reports[name]
if isinstance(service, WebKitParser):
#already instantiated properly, skip it
return