Browse Source

[FIX] report_py3o: Access to ir.config_parameter with sudo

pull/258/head
Laurent Mignon (ACSONE) 5 years ago
parent
commit
b5706db629
  1. 2
      report_py3o/models/ir_actions_report.py

2
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:

Loading…
Cancel
Save