Closed florian-dacosta closed 2 years ago
In version 16, the _get_param
native method totally bypass the ORM and make a direct sql query.
This make ir_config_parameter
totally incompatible with the server.env.mixin
This refactore is obsolete in recent version so let's close it.
This PR in draft state and is not necessarily meant to be merged, it will probably be best to aims the v16. But I'd like to have feedback from the users on the proposed changes and this way adapt it if there is strong blocakge about the current changes.
So, the idea is to make
ir.config_parameter
inherit fromserver.env.mixin
like any otherserver_environment_*
modules. It will standardize the module which seems nice to me, and this way make it compatible withserver_environment_data_encryption
which override theserver.env.mixin
mixin. I guess in the future we could have the same problem with any other module which aims to overrideserver.env.mixin
in order to add features for allserver_environment_*
modules.The main blocking point maybe is that refactore changes the format of the configuration file. Indeed, the current module exects something like :
While after the refactore, we have something similar as the other
server_environement_*
modules :Since this configuration is made by developpers, and since usually when you install
server_environment_ir_config_parameter
you also install otherserver_environment_*
modules, in my opinion, it is not a bad thing to go with this second format because this way it won't be different from the othersserver_environment_*
modules. But, if it is a real issue, maybe we could find a way to keep the old one. (But it would complexify the module)I'll be happy to have the opinion of the users of this module. @sbidoul @TDu @GillesTephaneMeyomesse @legalsylvain @sebastienbeau @gurneyalex @simahawk