fix value/cvalue read
This commit is contained in:
parent
493b7bd948
commit
351129228b
|
|
@ -50,7 +50,7 @@ class IrConfigParameter(models.Model):
|
||||||
# *before* the change, so we have to return the database
|
# *before* the change, so we have to return the database
|
||||||
# value in that case
|
# value in that case
|
||||||
self.sudo().with_context(_from_get_param=1).set_param(key, cvalue)
|
self.sudo().with_context(_from_get_param=1).set_param(key, cvalue)
|
||||||
value = cvalue
|
value = cvalue
|
||||||
if value is None:
|
if value is None:
|
||||||
return default
|
return default
|
||||||
return value
|
return value
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue