Commit Graph

71 Commits

Author SHA1 Message Date
OCA Transbot e9e59109d9 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/
2020-10-14 17:39:16 +02:00
OCA-git-bot 8506ea72ae server_environment 13.0.2.3.0 2020-10-14 17:39:16 +02:00
OCA-git-bot 39386e71eb [UPD] README.rst 2020-10-14 17:39:16 +02:00
oca-travis e848f23783 [UPD] Update server_environment.pot 2020-10-14 17:39:16 +02:00
Simone Orsi 8612c07728 Add mixin for tech name 2020-10-14 17:39:16 +02:00
Simone Orsi 688e55b069 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.
2020-10-14 17:39:16 +02:00
OCA-git-bot 4d0b2cbe0e [UPD] README.rst 2020-10-14 17:39:16 +02:00
Simone Orsi 307f4157f4 fixup! server_environment: running_env default to `test` (fix #44) 2020-10-14 17:39:16 +02:00
Simone Orsi 34e312e472 server_environment: running_env default to `test` (fix #44) 2020-10-14 17:39:16 +02:00
OCA-git-bot 01c552d4a2 pre-commit update 2020-10-14 17:39:16 +02:00
OCA Transbot 4b86a8a971 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/
2020-10-14 17:39:16 +02:00
oca-travis 0e7abb9da3 [UPD] Update server_environment.pot 2020-10-14 17:39:16 +02:00
Akim Juillerat 78b7577212 server_environment: Improve tests.common to allow redefinition of serv_config application 2020-10-14 17:39:16 +02:00
OCA Transbot 5ff69efef9 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/
2020-10-14 17:39:16 +02:00
OCA-git-bot b7f9dc4815 server_environment 13.0.2.2.0 2020-10-14 17:39:16 +02:00
oca-travis 062d7405ba [UPD] Update server_environment.pot 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
OCA-git-bot 50c80860b7 server_environment 13.0.2.1.0 2020-10-14 17:39:16 +02:00
Denis Roussel d2e7359e1a [13.0][FIX] server_environment: Change import for Serialized field 2020-10-14 17:39:16 +02:00
OCA Transbot cf283e4cc5 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/
2020-10-14 17:39:16 +02:00
OCA-git-bot a0b8d52b94 server_environment 13.0.2.0.1 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
OCA-git-bot 9b3b3b47e5 [UPD] README.rst 2020-10-14 17:39:16 +02:00
oca-travis 3c63262043 [UPD] Update server_environment.pot 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
Akim Juillerat f405c70a00 [MIG] server_environment: Migration to 13.0 2020-10-14 17:39:16 +02:00
OCA-git-bot 47e307bc1a [UPD] README.rst 2020-10-14 17:39:16 +02:00
OCA-git-bot 8f74748833 [ADD] icon.png 2020-10-14 17:39:16 +02:00
oca-travis 7fa9c49798 [UPD] Update server_environment.pot 2020-10-14 17:39:16 +02:00
OCA-git-bot 69005db54f [UPD] README.rst 2020-10-14 17:39:16 +02:00
Stéphane Bidoul (ACSONE) 5f007b1a6c [MIG] server_environment from 11 to 12 2020-10-14 17:39:16 +02:00
Thomas Binsfeld e673762226 [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
2020-10-14 17:39:16 +02:00
Guewen Baconnier f7f2e03439 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
2020-10-14 17:39:16 +02:00
Stéphane Bidoul (ACSONE) 82a0a48474 remove obsolete .pot files [ci skip] 2020-10-14 17:39:16 +02:00
Thomas Binsfeld 74348c031b [REF] Server Environment: remove dependency on server_environement_files
From https://github.com/OCA/server-env/issues/10
2020-10-14 17:39:16 +02:00
Stéphane Bidoul (ACSONE) 095827ced6 server_environment: bump version
To trigger rebuild following change in setup.py
2020-10-14 17:39:16 +02:00
OCA Transbot 051c46025b OCA Transbot updated translations from Transifex 2020-10-14 17:39:16 +02:00
Thierry Ducrest 0d1ec0173f [FIX] bug on view by changing generated table field name 2020-10-14 17:39:16 +02:00
Thierry Ducrest 43e9ada77e [MIG] server_environment: Migration to 11.0 2020-10-14 17:39:16 +02:00
Adrien Peiffer (ACSONE) 44de5eb1ff Migration of server_environment to 10.0 2020-10-14 17:39:16 +02:00
Pedro M. Baeza fa3b5475c0 [MIG] Rename manifest files 2020-10-14 17:39:16 +02:00
Pedro M. Baeza cc6c0e0954 [MIG] Make modules uninstallable 2020-10-14 17:39:16 +02:00
Stéphane Bidoul (ACSONE) f0a49d65b8 [IMP] load server environment options from odoo rcfile too (#556)
* [IMP] load server environment options from odoo rcfile

This allows delivering the code with default configuration options for
all environments in the server_environment_file module, but letting
the administrator override some configuration entries in the regular
odoo configuration file.

* server_environment_file: update README
2020-10-14 17:39:16 +02:00
Alexandre Fayolle 61a97c4ee3 9.0 migration of server_environment 2020-10-14 17:39:16 +02:00
Pedro M. Baeza 91fded9585 [MIG] Make modules uninstallable 2020-10-14 17:39:16 +02:00
Stéphane Bidoul cd1b1e7a21 [UPD] prefix versions with 8.0 2020-10-14 17:39:16 +02:00
Leonardo Pistone ab988b116d remove deprecated checks list 2020-10-14 17:39:16 +02:00