Browse Source

Merge pull request #937 from OCA/sbidoul-patch-1

[FIX] missing sudo in server_environment_ir_config_param
pull/936/merge
Pedro M. Baeza 7 years ago
committed by GitHub
parent
commit
45db7f16db
  1. 2
      server_environment_ir_config_parameter/__manifest__.py
  2. 2
      server_environment_ir_config_parameter/models/ir_config_parameter.py

2
server_environment_ir_config_parameter/__manifest__.py

@ -6,7 +6,7 @@
'name': 'Server Environment Ir Config Parameter', 'name': 'Server Environment Ir Config Parameter',
'summary': """ 'summary': """
Override System Parameters from server environment file""", Override System Parameters from server environment file""",
'version': '10.0.1.0.0',
'version': '10.0.1.0.1',
'license': 'AGPL-3', 'license': 'AGPL-3',
'author': 'ACSONE SA/NV,Odoo Community Association (OCA)', 'author': 'ACSONE SA/NV,Odoo Community Association (OCA)',
'website': 'https://odoo-community.org/', 'website': 'https://odoo-community.org/',

2
server_environment_ir_config_parameter/models/ir_config_parameter.py

@ -28,7 +28,7 @@ class IrConfigParameter(models.Model):
# should we have preloaded values in database at, # should we have preloaded values in database at,
# server startup, modules loading their parameters # server startup, modules loading their parameters
# from data files would break on unique key error. # from data files would break on unique key error.
self.set_param(key, cvalue)
self.sudo().set_param(key, cvalue)
value = cvalue value = cvalue
if value is None: if value is None:
return default return default

Loading…
Cancel
Save