Commit Graph

215 Commits

Author SHA1 Message Date
oca-ci a883ca205c [UPD] Update server_environment.pot 2021-10-22 13:23:55 +00:00
OCA-git-bot c2fb0bb87b Merge PR #87 into 15.0
Signed-off-by simahawk
2021-10-22 13:21:57 +00:00
jsanchez dfad546839 [MIG] server_environment: migration to 15.0 2021-10-22 13:03:14 +02:00
Ivàn Todorovich 03012cfd41 [UPD] Change LICENSE to LGPL 2021-10-22 13:03:14 +02:00
Mat-moran 69a8472049 Translated using Weblate (Spanish)
Currently translated at 9.1% (9 of 98 strings)

Translation: server-env-14.0/server-env-14.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-14-0/server-env-14-0-server_environment/es/
2021-10-22 13:03:14 +02:00
Stéphane Bidoul (ACSONE) ac3d428325 Translated using Weblate (French)
Currently translated at 8.1% (8 of 98 strings)

Translation: server-env-14.0/server-env-14.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-14-0/server-env-14-0-server_environment/fr/
2021-10-22 13:03:14 +02:00
oca-git-bot 8458252233 [IMP] update dotfiles [ci skip] 2021-10-22 13:03:14 +02:00
OCA-git-bot 73936667d7 [UPD] README.rst 2021-10-22 13:03:14 +02:00
oca-travis 8426e9d13d [UPD] Update server_environment.pot 2021-10-22 13:03:14 +02:00
Mourad 90699e1cf3 [MIG] server_environment: Migration to 14.0 2021-10-22 13:03:14 +02:00
Mourad f517ff7d56 [IMP] : black, isort, prettier 2021-10-22 13:03:14 +02:00
OCA-git-bot 1264311577 server_environment 13.0.2.3.1 2021-10-22 13:03:14 +02:00
Olar Alca [Vauxoo] 2ce25842bf Update server_environment/serv_config.py
Co-authored-by: Moises Lopez - https://www.vauxoo.com/ <moylop260@vauxoo.com>
2021-10-22 13:03:14 +02:00
OCA Transbot 6d8f8d023a Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-env-13.0/server-env-13.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-13-0/server-env-13-0-server_environment/
2021-10-22 13:03:14 +02:00
OCA-git-bot 591cf65d45 server_environment 13.0.2.3.0 2021-10-22 13:03:14 +02:00
OCA-git-bot f10ea700e6 [UPD] README.rst 2021-10-22 13:03:14 +02:00
oca-travis 3f7ea7b10c [UPD] Update server_environment.pot 2021-10-22 13:03:14 +02:00
Simone Orsi 3b8900773a Add mixin for tech name 2021-10-22 13:03:14 +02:00
Simone Orsi cac012685a Fix server_environment version
The PR https://github.com/OCA/server-env/pull/45 has been merged manually and a new version was not bumped.
2021-10-22 13:03:14 +02:00
OCA-git-bot 9b206cba81 [UPD] README.rst 2021-10-22 13:03:14 +02:00
Simone Orsi 41c6f4a881 server_environment: running_env default to `test` (fix #44) 2021-10-22 13:03:14 +02:00
OCA-git-bot 11a75b589a pre-commit update 2021-10-22 12:35:41 +02:00
OCA Transbot 0493e1e248 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-env-13.0/server-env-13.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-13-0/server-env-13-0-server_environment/
2021-10-22 12:35:41 +02:00
oca-travis cc0c8b3b10 [UPD] Update server_environment.pot 2021-10-22 12:35:41 +02:00
Akim Juillerat 61f2e3fcf9 server_environment: Improve tests.common to allow redefinition of serv_config application 2021-10-22 12:35:41 +02:00
OCA Transbot ab39d7741c Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-env-13.0/server-env-13.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-13-0/server-env-13-0-server_environment/
2021-10-22 12:35:41 +02:00
OCA-git-bot 8d643cee9f server_environment 13.0.2.2.0 2021-10-22 12:35:41 +02:00
oca-travis 872ce30cb7 [UPD] Update server_environment.pot 2021-10-22 12:35:41 +02:00
Guewen Baconnier fd8697bbb8 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.
2021-10-22 12:35:41 +02:00
OCA-git-bot bdfac11d39 server_environment 13.0.2.1.0 2021-10-22 12:35:41 +02:00
Denis Roussel 814170f8c3 [13.0][FIX] server_environment: Change import for Serialized field 2021-10-22 12:35:41 +02:00
OCA Transbot 559e13a8e7 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-env-13.0/server-env-13.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-13-0/server-env-13-0-server_environment/
2021-10-22 12:35:41 +02:00
OCA-git-bot 7b76507a67 server_environment 13.0.2.0.1 2021-10-22 12:35:41 +02:00
Stéphane Bidoul (ACSONE) 3e14d18801 pre-commit, black, isort 2021-10-22 12:35:41 +02:00
Akim Juillerat 7a733042b3 server-environment: Run pre-commit 2021-10-22 12:35:41 +02:00
Akim Juillerat 5931ab5614 server_environment: lint fixes after migration 2021-10-22 12:35:41 +02:00
Stéphane Bidoul (ACSONE) 9cba48fbd3 pre-commit, black, isort 2021-10-22 12:35:41 +02:00
OCA-git-bot f31c2419db [UPD] README.rst 2021-10-22 12:35:41 +02:00
oca-travis ee86d290ad [UPD] Update server_environment.pot 2021-10-22 12:35:41 +02:00
Akim Juillerat 43211b691a Rename file to attend TODO comment 2021-10-22 12:35:41 +02:00
Akim Juillerat 9947d64d1e [MIG] server_environment: Migration to 13.0 2021-10-22 12:35:41 +02:00
OCA-git-bot af01a017f3 [UPD] README.rst 2021-10-22 12:35:41 +02:00
OCA-git-bot a09df75073 [ADD] icon.png 2021-10-22 12:35:41 +02:00
oca-travis 3dfd0cf8d4 [UPD] Update server_environment.pot 2021-10-22 12:35:41 +02:00
OCA-git-bot f88a6b8df3 [UPD] README.rst 2021-10-22 12:35:41 +02:00
Stéphane Bidoul (ACSONE) 86355fa54a [MIG] server_environment from 11 to 12 2021-10-22 12:35:41 +02:00
Thomas Binsfeld a3c343fbb8 [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
2021-10-22 12:35:41 +02:00
Guewen Baconnier d16a7dd027 Add SERVER_ENV_CONFIG to configure vars from env. variable
Add SERVER_ENV_CONFIG_SECRET alongside SERVER_ENV_CONFIG

Allows to isolate the secrets in your deployment

Improve documentation regarding variables

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.

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).

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.

Fix a few small issues in mixin

Use a dictionary to configure the fields

Add global section

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.

Use global section name as first part of the section

Allow to edit all fields on creation

Make server_environment_files optional

Allow integration with keychain

By adding options to change the compute and inverse methods for default
fields

Update documentation of server_environment, bump

Add SERVER_ENV_CONFIG_SECRET alongside SERVER_ENV_CONFIG

Allows to isolate the secrets in your deployment

Reinforce server_environment base tests

Add tests for the server env mixin

Infer configparser getter from field type

Fixes for review feedbacks

Add tests and support of _inherits

Use SavepointCase instead of TransactionCase

It means less records to create for each test

Fix iteration on records
2021-10-22 12:35:41 +02:00
Stéphane Bidoul (ACSONE) 85baefa65b remove obsolete .pot files [ci skip] 2021-10-22 12:35:41 +02:00
Thomas Binsfeld ec59014bce [REF] Server Environment: remove dependency on server_environement_files
From https://github.com/OCA/server-env/issues/10
2021-10-22 12:35:41 +02:00