Commit Graph

252 Commits

Author SHA1 Message Date
OCA Transbot 00704d8e59 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/
2022-10-04 11:11:51 +02:00
OCA-git-bot 3ca4f4839c server_environment 13.0.2.0.1 2022-10-04 11:11:51 +02:00
Stéphane Bidoul (ACSONE) 6ee2098cfd pre-commit, black, isort 2022-10-04 11:11:51 +02:00
Akim Juillerat d1a9ffcd8f server-environment: Run pre-commit 2022-10-04 11:11:51 +02:00
Akim Juillerat f2635e84e4 server_environment: lint fixes after migration 2022-10-04 11:11:51 +02:00
Stéphane Bidoul (ACSONE) 40132984fd pre-commit, black, isort 2022-10-04 11:11:51 +02:00
OCA-git-bot d93bdf1b46 [UPD] README.rst 2022-10-04 11:11:51 +02:00
oca-travis 8596cff8c8 [UPD] Update server_environment.pot 2022-10-04 11:11:51 +02:00
Akim Juillerat 288ef1ced9 Rename file to attend TODO comment 2022-10-04 11:11:51 +02:00
Akim Juillerat f5a1d4e782 [MIG] server_environment: Migration to 13.0 2022-10-04 11:11:51 +02:00
OCA-git-bot 17ce1f50ab [UPD] README.rst 2022-10-04 11:11:51 +02:00
OCA-git-bot c45f3c93e1 [ADD] icon.png 2022-10-04 11:11:51 +02:00
oca-travis 1751cef74a [UPD] Update server_environment.pot 2022-10-04 11:11:51 +02:00
OCA-git-bot 7027082753 [UPD] README.rst 2022-10-04 11:11:51 +02:00
Stéphane Bidoul (ACSONE) 8e5b7e91b6 [MIG] server_environment from 11 to 12 2022-10-04 11:11:51 +02:00
Thomas Binsfeld c7a09c0224 [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
2022-10-04 11:11:51 +02:00
Guewen Baconnier fee58c7681 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
2022-10-04 11:11:51 +02:00
Stéphane Bidoul (ACSONE) 04f1d2f4e3 remove obsolete .pot files [ci skip] 2022-10-04 11:11:51 +02:00
Thomas Binsfeld b4ff859d0d [REF] Server Environment: remove dependency on server_environement_files
From https://github.com/OCA/server-env/issues/10
2022-10-04 11:11:51 +02:00
Stéphane Bidoul (ACSONE) f6d4ba04bb server_environment: bump version
To trigger rebuild following change in setup.py
2022-10-04 11:11:51 +02:00
OCA Transbot 15aeb3bf64 OCA Transbot updated translations from Transifex 2022-10-04 11:11:51 +02:00
Thierry Ducrest c1f7a192eb [FIX] bug on view by changing generated table field name 2022-10-04 11:11:51 +02:00
Thierry Ducrest 968d9d3e8b [MIG] server_environment: Migration to 11.0 2022-10-04 11:11:51 +02:00
Adrien Peiffer (ACSONE) bd44c2c287 Migration of server_environment to 10.0 2022-10-04 11:11:51 +02:00
Pedro M. Baeza 8136bdf9e6 [MIG] Rename manifest files 2022-10-04 11:11:51 +02:00
Pedro M. Baeza c80d295122 [MIG] Make modules uninstallable 2022-10-04 11:11:51 +02:00
Stéphane Bidoul (ACSONE) 3e47b83d0e [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
2022-10-04 11:11:51 +02:00
Alexandre Fayolle b2d2933573 9.0 migration of server_environment 2022-10-04 11:11:51 +02:00
Pedro M. Baeza c30ac9a0d3 [MIG] Make modules uninstallable 2022-10-04 11:11:51 +02:00
Stéphane Bidoul 8f4e9c6b11 [UPD] prefix versions with 8.0 2022-10-04 11:11:51 +02:00
Leonardo Pistone dccc02649f remove deprecated checks list 2022-10-04 11:11:51 +02:00
Holger Brunn 02ce077c0a [FIX] unconfigured server_environment doesn't play
nice with static files
2022-10-04 11:11:51 +02:00
Yannick Vaucher 7af9d40ddd Add missing default oca icons 2022-10-04 11:11:51 +02:00
Alexandre Fayolle 1fb0af3189 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.
2022-10-04 11:11:51 +02:00
Alexandre Fayolle 3dd696d9ef fix pep8 W503 2022-10-04 11:11:51 +02:00
Yannick Vaucher 1cd1301d89 Add license key in __openerp__.py 2022-10-04 11:11:51 +02:00
Leonardo Pistone 6df6e3d6a7 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.
2022-10-04 11:11:51 +02:00
Holger Brunn f8d99d15dd [FIX] travis 2022-10-04 11:11:51 +02:00
Nicolas Bessi f40e5b8c67 Port server environment to version 8.0 2022-10-04 11:11:51 +02:00
Nicolas Bessi 7b76f579df Moving server environment module and sample module 2022-10-04 11:11:51 +02:00
Stéphane Bidoul 11f44efa63 move all modules to __unported__ on master branch and set installable=False 2022-10-04 11:11:51 +02:00
Yannick Vaucher 5f193ed8a9 [PEP8] server_environment 2022-10-04 11:11:51 +02:00
Sandy Carter 7bee5b4a56 Generate .pot files 2022-10-04 11:11:51 +02:00
Alexandre Fayolle a6c881dbd3 [7.0] 1st pass at porting server_environment 2022-10-04 11:11:51 +02:00
Alexandre Fayolle 404221d10a [7.0] mark all unported modules as not installable 2022-10-04 11:11:51 +02:00
@ 3b78e4c653 [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)
2022-10-04 11:11:51 +02:00
@ 9ae7c04af1 [MRG] from upstream
(lp:c2c-addons/6.1  rev 45.1.4)
2022-10-04 11:11:51 +02:00
Florent Xicluna b6b0cf7da7 [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)
2022-10-04 11:11:51 +02:00
unknown ea4f814aca [FIX] typo
(lp:c2c-addons/6.1  rev 28.1.1)
2022-10-04 11:11:51 +02:00
unknown abc54c097e [FIX] openerp\assert_exit_level does not exist ! in server_environment
(lp:c2c-addons/6.1  rev 11.1.4)
2022-10-04 11:11:51 +02:00