Commit Graph

7 Commits

Author SHA1 Message Date
Simone Orsi 34e312e472 server_environment: running_env default to `test` (fix #44) 2020-10-14 17:39:16 +02:00
Guewen Baconnier 7c2d20734d Store the 'server.config' fields in sparse fields
This model is used only to display the configuration to authorized
users. It's a TransientModel that dynamically creates the fields for
every odoo configuration parameter, environment variables and some
system ones. Before this change, each new parameter/variable will
create a field in database, which can lead to many issues (lot of
fields, field name too long). Storing the fields in a single JSON
field resolves these issues and is much cleaner anyway.
2020-10-14 17:39:16 +02:00
Stéphane Bidoul (ACSONE) 7142c5800a pre-commit, black, isort 2020-10-14 17:39:16 +02:00
Akim Juillerat 2561fd6b97 server-environment: Run pre-commit 2020-10-14 17:39:16 +02:00
Akim Juillerat 5b2d301b96 server_environment: lint fixes after migration 2020-10-14 17:39:16 +02:00
Stéphane Bidoul (ACSONE) 300b78d44b pre-commit, black, isort 2020-10-14 17:39:16 +02:00
Akim Juillerat 99eae2d5df Rename file to attend TODO comment 2020-10-14 17:39:16 +02:00