Commit Graph

99 Commits

Author SHA1 Message Date
Sylvain LE GAL ae04741426 fixup! fixup! [12.0][PORT] server_environment. port static files controllers from server-tools 8.0 branch 2020-05-21 09:50:38 +02:00
Sylvain LE GAL 5433d70dec fixup! [12.0][PORT] server_environment. port static files controllers from server-tools 8.0 branch 2020-05-20 21:21:47 +02:00
Sylvain LE GAL 553d572887 [12.0][PORT] server_environment. port static files controllers from server-tools 8.0 branch 2020-05-20 20:42:22 +02:00
OCA Transbot 11d6745d41 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-env-12.0/server-env-12.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-12-0/server-env-12-0-server_environment/
2020-04-20 12:19:29 +00:00
OCA-git-bot a06f156ddc server_environment 12.0.2.0.3 2020-04-20 12:19:16 +00:00
oca-travis 83825a0c40 [UPD] Update server_environment.pot 2020-04-20 12:13:02 +00:00
OCA-git-bot 88e6f8bbbd Merge PR #35 into 12.0
Signed-off-by simahawk
2020-04-20 11:55:25 +00:00
OCA-git-bot e53ae257ff server_environment 12.0.2.0.2 2020-04-16 16:00:19 +00:00
OCA-git-bot ee29b98c34 [UPD] README.rst 2020-04-16 16:00:19 +00:00
Simone Orsi ecce24d296 fixup! server_environment: running_env default to `test` (fix #44) 2020-04-16 14:51:41 +02:00
Simone Orsi 7d6ebde333 server_environment: running_env default to `test` (fix #44) 2020-04-16 14:51:31 +02:00
OCA-git-bot ec4d55846b server_environment 12.0.2.0.1 2020-03-09 09:54:12 +00:00
Denis Roussel 312eb90cbb [FIX] server_environment: Change import for Serialized field 2020-03-09 10:13:55 +01:00
Guewen Baconnier 47f23fb308 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.
2019-12-20 16:22:58 +01:00
OCA Transbot dc6e2b266e Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-env-12.0/server-env-12.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-12-0/server-env-12-0-server_environment/
2019-10-10 20:58:28 +00:00
oca-travis de8fb2bb1a [UPD] Update server_environment.pot 2019-10-10 20:51:17 +00:00
OCA-git-bot db2731ccef [UPD] README.rst 2019-07-29 03:38:16 +00:00
OCA-git-bot e89b08a9a3 [ADD] icon.png 2019-04-03 03:21:20 +00:00
oca-travis dc10517b9b [UPD] Update server_environment.pot 2018-11-15 12:32:44 +00:00
OCA-git-bot 15fc38be36 [UPD] README.rst 2018-11-15 12:26:47 +00:00
Stéphane Bidoul (ACSONE) b53480fc8b
Add missing _descriptions 2018-11-13 12:30:21 +01:00
Stéphane Bidoul (ACSONE) ef1b42ce8a
[IMP] clarify contributors lists 2018-11-13 11:09:09 +01:00
Stéphane Bidoul (ACSONE) 7de4657d24
[IMP] copyright headers
Use GPL licenses everywhere, to match original code.
2018-11-13 11:05:47 +01:00
Stéphane Bidoul (ACSONE) 04ed0575a1
[FIX] server_environment: fix spelling error 2018-11-06 10:40:16 +01:00
Stéphane Bidoul (ACSONE) 55e5ff330f
[IMP] server_environment: readme fragments 2018-11-06 10:40:16 +01:00
Stéphane Bidoul (ACSONE) ca116964ca
[MIG] server_environment from 11 to 12 2018-11-06 10:40:16 +01:00
Thomas Binsfeld f681ae6543
[REF] Server Environment: restrict access to server config to allowed users
New security group restricting access to server config
Admin is part of the group by default
2018-11-06 10:40:16 +01:00
Guewen Baconnier 06a5dc0fae
Fix iteration on records 2018-11-05 17:35:33 +01:00
Guewen Baconnier 675335a26b
Use SavepointCase instead of TransactionCase
It means less records to create for each test
2018-11-05 17:35:33 +01:00
Guewen Baconnier 95f5e2abaf
Add tests and support of _inherits 2018-11-05 17:35:33 +01:00
Guewen Baconnier bd67585150
fixup! Fixes for review feedbacks 2018-11-05 17:35:32 +01:00
Guewen Baconnier 8325b7ee74
fixup! Infer configparser getter from field type 2018-11-05 17:35:32 +01:00
Guewen Baconnier abbfec896b
fixup! Update documentation of server_environment, bump 2018-11-05 17:35:32 +01:00
Guewen Baconnier ea5204d471
Fixes for review feedbacks 2018-11-05 17:35:32 +01:00
Guewen Baconnier 98bc9ea988
Infer configparser getter from field type 2018-11-05 17:35:32 +01:00
Guewen Baconnier e096c209ed
Add tests for the server env mixin 2018-11-05 17:35:32 +01:00
Guewen Baconnier 80a56d320a
Reinforce server_environment base tests 2018-11-05 17:35:31 +01:00
Guewen Baconnier 5b977f8df5
Add SERVER_ENV_CONFIG_SECRET alongside SERVER_ENV_CONFIG
Allows to isolate the secrets in your deployment
2018-11-05 17:35:31 +01:00
Guewen Baconnier 107ca7da9d
Update documentation of server_environment, bump 2018-11-05 17:35:31 +01:00
Guewen Baconnier 398b324b03
Allow integration with keychain
By adding options to change the compute and inverse methods for default
fields
2018-11-05 17:35:31 +01:00
Guewen Baconnier e8da1f3d25
Make server_environment_files optional 2018-11-05 17:35:31 +01:00
Guewen Baconnier c5f56e6336
Allow to edit all fields on creation 2018-11-05 17:35:31 +01:00
Guewen Baconnier d7f0a1b24b
Use global section name as first part of the section 2018-11-05 17:35:30 +01:00
Guewen Baconnier 27c1a41f24
Disable prefetch on env-computed fields
As in the inverse field that write the value into the <field>_env_default
we have to browse the record, the prefetch has the effect of calling
compute on the env-computed field which resets the value to it's
previous state before we have the occasion to store it.
2018-11-05 17:35:30 +01:00
Guewen Baconnier e0832cb649
Add global section 2018-11-05 17:35:30 +01:00
Guewen Baconnier 572f581bfa
Use a dictionary to configure the fields 2018-11-05 17:35:30 +01:00
Guewen Baconnier 70d6966ce0
Fix a few small issues in mixin 2018-11-05 17:35:30 +01:00
Guewen Baconnier f7e207a1a1
Allow to edit default values for env-computed fields
When they don't have any key in the environment configuration files.
In the UI, when a field is set in a configuration file, the field is
readonly, if not the field is editable. Which means you can selectively
choose which fields depend on the environment and which can use a
"default" value stored in database.
2018-11-05 17:35:29 +01:00
Guewen Baconnier d917407672
Read default values from database when no config is provided
Automatically add <field_name>_env_default for every field transformed
to a "computed from env" field, so a default value can be set. It will
be used when the configuration is not set in a configuration file
(when the key is absent, not empty).
2018-11-05 17:35:29 +01:00
Guewen Baconnier fbc4f8f928
Add a server environment mixin
To automatically convert fields into fields reading values from the
environment. Until now, every module reimplements the same computed
field.
2018-11-05 17:35:29 +01:00