Commit Graph

230 Commits

Author SHA1 Message Date
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
Stéphane Bidoul (ACSONE) 435800a0ee server_environment: bump version
To trigger rebuild following change in setup.py
2021-10-22 12:35:41 +02:00
OCA Transbot ca2fa53f54 OCA Transbot updated translations from Transifex 2021-10-22 12:35:41 +02:00
Thierry Ducrest 645126b396 [FIX] bug on view by changing generated table field name 2021-10-22 12:35:41 +02:00
Thierry Ducrest 2f8283fd45 [MIG] server_environment: Migration to 11.0 2021-10-22 12:35:41 +02:00
Adrien Peiffer (ACSONE) c6105f59ab Migration of server_environment to 10.0 2021-10-22 12:35:41 +02:00
Pedro M. Baeza f917d4e579 [MIG] Rename manifest files 2021-10-22 12:35:41 +02:00
Pedro M. Baeza 1ba1d978c6 [MIG] Make modules uninstallable 2021-10-22 12:35:41 +02:00
Stéphane Bidoul (ACSONE) bb6d2719d0 [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
2021-10-22 12:35:41 +02:00
Alexandre Fayolle fd1d8b079e 9.0 migration of server_environment 2021-10-22 12:35:41 +02:00
Pedro M. Baeza 6d844e7527 [MIG] Make modules uninstallable 2021-10-22 12:35:41 +02:00
Stéphane Bidoul e536d7726e [UPD] prefix versions with 8.0 2021-10-22 12:35:41 +02:00
Leonardo Pistone eb989a81c4 remove deprecated checks list 2021-10-22 12:35:41 +02:00
Holger Brunn e24c1ed93f [FIX] unconfigured server_environment doesn't play
nice with static files
2021-10-22 12:35:41 +02:00
Yannick Vaucher 4b7a5f705b Add missing default oca icons 2021-10-22 12:35:41 +02:00
Alexandre Fayolle 3250ea9344 Add OCA as author of OCA addons
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
2021-10-22 12:35:41 +02:00
Alexandre Fayolle bf853a151c fix pep8 W503 2021-10-22 12:35:41 +02:00
Yannick Vaucher 3bd8b100ee Add license key in __openerp__.py 2021-10-22 12:35:41 +02:00
Leonardo Pistone b47aa7f9b5 capture stderr as well as stdout when diagnosing
This fixes OCA/server-tools#125 because in some Ubuntu systems
lsb_release outputs to stderr as well as stdout. This message will be
printed to console, not logged nor shown among server infomation. That
way the message is lost and only pollutes unit tests output.
2021-10-22 12:35:41 +02:00
Holger Brunn d65515f27e [FIX] travis 2021-10-22 12:35:41 +02:00
Nicolas Bessi c728e703c4 Port server environment to version 8.0 2021-10-22 12:35:41 +02:00
Nicolas Bessi 2d9af8d41e Moving server environment module and sample module 2021-10-22 12:35:41 +02:00
Stéphane Bidoul 8667e0b11f move all modules to __unported__ on master branch and set installable=False 2021-10-22 12:35:41 +02:00
Yannick Vaucher c71b294076 [PEP8] server_environment 2021-10-22 12:35:41 +02:00
Sandy Carter c2a59dc296 Generate .pot files 2021-10-22 12:35:41 +02:00
Alexandre Fayolle 0c5f78fe4a [7.0] 1st pass at porting server_environment 2021-10-22 12:35:41 +02:00
Alexandre Fayolle d022a26bc4 [7.0] mark all unported modules as not installable 2021-10-22 12:35:41 +02:00
@ e6c6cb0b58 [MRG] Fix by florent.x on server_environment: drop the hack for the GTK client, because for 6.1 the web client is the blessed target.
(lp:c2c-addons/6.1  rev 116)
2021-10-22 12:35:41 +02:00
@ 557cd9e625 [MRG] from upstream
(lp:c2c-addons/6.1  rev 45.1.4)
2021-10-22 12:35:41 +02:00
Florent Xicluna fc469847be [FIX] drop the hack for the GTK client, because for 6.1 the web client is the blessed target.
(lp:c2c-addons/6.1  rev 40.2.1)
2021-10-22 12:35:41 +02:00
unknown 51eb9f36ef [FIX] typo
(lp:c2c-addons/6.1  rev 28.1.1)
2021-10-22 12:35:41 +02:00
unknown 66891d88fd [FIX] openerp\assert_exit_level does not exist ! in server_environment
(lp:c2c-addons/6.1  rev 11.1.4)
2021-10-22 12:35:41 +02:00
Joël Grand-Guillaume f0d50a1ca0 [ADD] server evironment file + sample
(lp:c2c-addons/6.1  rev 11)
2021-10-22 12:35:41 +02:00
jsanchez 16a1fb3df2 [MIG] Migration to version 15.0 2021-10-20 08:42:17 +02:00
OCA-git-bot 3c983fa408 [UPD] README.rst 2021-10-20 08:35:22 +02:00
oca-travis 5ddd493ed9 [UPD] Update server_environment_ir_config_parameter.pot 2021-10-20 08:35:22 +02:00