Skip to content
Snippets Groups Projects
Commit be33912a authored by Pierre Verkest's avatar Pierre Verkest Committed by Denis Ledoux
Browse files

[FIX] report_webkit: get webkit path as SUPERUSER_ID

`ir.config_parameter` is readable by employees only.
It could happen to print a webkit report
as a portal / public user.

Closes #4181
parent 34f79f3d
Branches
Tags
No related merge requests found
......@@ -48,6 +48,7 @@ from openerp import pooler
from report_helper import WebKitHelper
from openerp.report.report_sxw import *
from openerp import addons
from openerp import SUPERUSER_ID
from openerp import tools
from openerp.tools.translate import _
from openerp.osv.osv import except_osv
......@@ -76,7 +77,7 @@ class WebKitParser(report_sxw):
def get_lib(self, cursor, uid):
"""Return the lib wkhtml path"""
proxy = self.pool.get('ir.config_parameter')
webkit_path = proxy.get_param(cursor, uid, 'webkit_path')
webkit_path = proxy.get_param(cursor, SUPERUSER_ID, 'webkit_path')
if not webkit_path:
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment