Browse Source

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

pull/258/head
Laurent Mignon (ACSONE) 6 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 @api.model
def _get_lo_bin(self): 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', PY3O_CONVERSION_COMMAND_PARAMETER, 'libreoffice',
) )
try: try:

Loading…
Cancel
Save