Friday, October 16, 2020
1 change · master
Resolved issues and error corrections
Odoo now only uses a fallback value when a configuration setting is truly missing, not when it is intentionally set to an empty or false-like value. This prevents unexpected substitutions and helps custom modules handle deliberately blank settings more reliably.
Original PR description
Follow docstring of get_param:
The value of the parameter, or ``default`` if it does not exist.
Before this commit, if the parameter contains a falsy value, the default value
was returned.
Now, we only return the default value if it is None, the value returned by
_get_param in case of missing parameters.
Goal:
If you have a ir.config_parameter eg 'module.prefix' that you set to empty,
you should be able to do ICP.get_param('module.prefix') + '/ok' without add
manually add a default value (..., '').