From e911ba740f3a64a586bcc3e6cacd50728478b13c Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (ACSONE)" Date: Tue, 5 Feb 2019 18:22:15 +0100 Subject: [PATCH] [FIX] report_py3o: Access to ir.config_parameter with sudo --- report_py3o/models/ir_actions_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report_py3o/models/ir_actions_report.py b/report_py3o/models/ir_actions_report.py index 1aabd4c9..1e60a373 100644 --- a/report_py3o/models/ir_actions_report.py +++ b/report_py3o/models/ir_actions_report.py @@ -106,7 +106,7 @@ class IrActionsReport(models.Model): @api.model def _get_lo_bin(self): - lo_bin = self.env['ir.config_parameter'].get_param( + lo_bin = self.env['ir.config_parameter'].sudo().get_param( PY3O_CONVERSION_COMMAND_PARAMETER, 'libreoffice', ) try: