Commit Graph

15 Commits

Author SHA1 Message Date
OCA-git-bot cb09dec295 [UPD] README.rst 2023-09-12 08:23:30 +00:00
OCA-git-bot 0557318c57 [UPD] README.rst 2023-09-03 16:38:29 +00:00
OCA-git-bot 4ddf44248f [UPD] README.rst 2021-12-02 14:24:07 +00:00
OCA-git-bot 33ba80327f [UPD] README.rst 2021-10-22 11:33:27 +00:00
OCA-git-bot 601205f71b [UPD] README.rst 2020-10-16 09:57:10 +00:00
Mourad ff6b2c1e45 [MIG] server_environment: Migration to 14.0 2020-10-15 12:10:52 +02:00
OCA-git-bot fbf97ae4bf [UPD] README.rst 2020-10-12 10:40:13 +02:00
OCA-git-bot 02efcd423f [UPD] README.rst 2020-10-12 10:40:13 +02:00
OCA-git-bot 476f574447 [UPD] README.rst 2020-10-12 10:40:13 +02:00
OCA-git-bot 0dde2fc184 [UPD] README.rst 2020-10-12 10:40:13 +02:00
Thomas Binsfeld 904db377cb [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-12 10:40:13 +02:00
Guewen Baconnier 0c50afea22 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-12 10:40:13 +02:00
Adrien Peiffer (ACSONE) c496bbd386 Migration of server_environment to 10.0 2020-10-12 10:40:13 +02:00
Stéphane Bidoul (ACSONE) c483c3d968 [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-12 10:40:13 +02:00
Alexandre Fayolle e1c2abb046 9.0 migration of server_environment 2020-10-12 10:40:13 +02:00