Browse Source

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

pull/347/head
Laurent Mignon (ACSONE) 6 years ago
parent
commit
e911ba740f
  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