[MIG] server_environment_ir_config_parameter: Migration to 13.0
This commit is contained in:
parent
30e49b7705
commit
0246d9f7d4
|
|
@ -5,15 +5,11 @@
|
||||||
'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': '12.0.1.0.0',
|
'version': '13.0.1.0.0',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'author': 'ACSONE SA/NV, Odoo Community Association (OCA)',
|
'author': 'ACSONE SA/NV, Odoo Community Association (OCA)',
|
||||||
'website': 'https://github.com/OCA/server-env/',
|
'website': 'https://github.com/OCA/server-env/',
|
||||||
'depends': [
|
'depends': [
|
||||||
'server_environment',
|
'server_environment',
|
||||||
],
|
],
|
||||||
'data': [
|
|
||||||
],
|
|
||||||
'demo': [
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,6 @@ class IrConfigParameter(models.Model):
|
||||||
vals = dict(vals, value=serv_config.get(SECTION, key))
|
vals = dict(vals, value=serv_config.get(SECTION, key))
|
||||||
return super().create(vals)
|
return super().create(vals)
|
||||||
|
|
||||||
@api.multi
|
|
||||||
def write(self, vals):
|
def write(self, vals):
|
||||||
for rec in self:
|
for rec in self:
|
||||||
key = vals.get('key') or rec.key
|
key = vals.get('key') or rec.key
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue