Commit Graph

78 Commits

Author SHA1 Message Date
Pedro M. Baeza 6b14e442e2 [MIG] pre migration changes
[MIG] Rename manifest files
2020-01-28 11:49:01 +01:00
Alexandre Fayolle 235757622c 9.0 migration of mail_environment 2020-01-28 11:49:01 +01:00
Pedro M. Baeza 4ac9bb4fd6 [MIG] Make modules uninstallable 2020-01-28 11:49:01 +01:00
Stéphane Bidoul fc329bb2d2 [UPD] prefix versions with 8.0 2020-01-28 11:49:01 +01:00
Holger Brunn b064b42d14 [FIX] like #230, but for mail_environment 2020-01-28 11:49:01 +01:00
Yannick Vaucher db312cd846 Add missing default oca icons 2020-01-28 11:49:01 +01:00
Alexandre Fayolle efee8883a2 fix runbot warning
rename *_xml entries in manifest
2020-01-28 11:49:01 +01:00
Alexandre Fayolle 0c03836a07 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.
2020-01-28 11:49:01 +01:00
Guewen Baconnier 8c302137c0 mail_eniroment misc improvements
* Move mail_environment in root folder
* Use absolute imports for openerp and new Model classes
* Use cr argument instead of cursor, propagate context
* Update fields, remove deprecated 'method' argument, change 'states'
  otherwise the fields are not readonly (seems that the 'states' of the
  original field is kept.
* Activate the installable flag
* Indentation of the view with 2 spaces
* Remove only the attrs attribute instead of redefining the whole field
* pep8
* crm is not a dependency for mail_environment
* Fix typo in manifest
2020-01-28 11:49:01 +01:00
Jose Morales 2c229430a5 [IMP] 7.0 no view type required 2020-01-28 11:49:01 +01:00
Joel Grand-Guillaume a463235135 [FIX] Add fnct_search on type in order to avoid error when ir.cron run the fetch task 2020-01-28 11:49:01 +01:00
@ 943a5fab23 [IMP] mail_environment misc 2020-01-28 11:49:01 +01:00
Joël Grand-Guillaume bbdb695257 [add] mail_environment 2020-01-28 11:49:01 +01:00
OCA Transbot a82011baf5 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-01-16 14:53:38 +00:00
OCA-git-bot 51631c87b8 server_environment 13.0.2.2.0 2020-01-16 14:53:28 +00:00
oca-travis b9b45b8de4 [UPD] Update server_environment.pot 2020-01-16 14:49:05 +00:00
OCA-git-bot c4781e3eb5 Merge PR #38 into 13.0
Signed-off-by guewen
2020-01-16 14:44:52 +00:00
Guewen Baconnier b8e86de50c 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-01-06 11:31:56 +01:00
OCA-git-bot c6929e20ae server_environment 13.0.2.1.0 2019-12-20 14:01:54 +00:00
OCA-git-bot ec65cf0e86 Merge PR #37 into 13.0
Signed-off-by guewen
2019-12-20 13:56:26 +00:00
Denis Roussel a101ef181d [13.0][FIX] server_environment: Change import for Serialized field 2019-12-20 13:32:01 +01:00
OCA Transbot b169318c2f 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/
2019-12-16 15:48:29 +00:00
OCA-git-bot e3ebbef50e server_environment 13.0.2.0.1 2019-12-16 15:48:18 +00:00
OCA-git-bot 007e51f931 Merge PR #36 into 13.0
Signed-off-by yvaucher
2019-12-16 15:38:44 +00:00
Yannick Vaucher 45887713ba Set running_env for CI
server_environment module requires this key in config.
2019-12-16 13:11:44 +01:00
Stéphane Bidoul (ACSONE) 388d537aad pre-commit, black, isort 2019-12-16 13:10:27 +01:00
Akim Juillerat ef1e08235c server-environment: Run pre-commit 2019-12-16 13:10:27 +01:00
Akim Juillerat 2a32750c99 server_environment: lint fixes after migration 2019-12-16 13:10:27 +01:00
Stéphane Bidoul (ACSONE) c030a42103 pre-commit, black, isort 2019-12-16 13:10:27 +01:00
OCA-git-bot abeb540935
[ADD] .editorconfig [ci skip] 2019-11-19 20:28:10 +01:00
OCA-git-bot 75b3811e57 [ADD] setup.py 2019-10-11 10:00:25 +00:00
OCA-git-bot 1741af2c5c [UPD] README.rst 2019-10-11 10:00:24 +00:00
oca-travis 25d3d4f6e6 [UPD] Update server_environment.pot 2019-10-11 09:49:10 +00:00
OCA-git-bot b5f82d6d14 Merge PR #29 into 13.0
Signed-off-by gurneyalex
2019-10-11 09:27:18 +00:00
Akim Juillerat bb73c66213 Rename file to attend TODO comment 2019-10-11 09:33:10 +02:00
Akim Juillerat 38d85a0611 [MIG] server_environment: Migration to 13.0 2019-10-11 09:33:10 +02:00
OCA-git-bot cc285ec325 [UPD] README.rst 2019-10-11 09:33:10 +02:00
OCA-git-bot a06b07dece [ADD] icon.png 2019-10-11 09:33:10 +02:00
oca-travis 9c05d591f5 [UPD] Update server_environment.pot 2019-10-11 09:33:10 +02:00
OCA-git-bot 452938b91f [UPD] README.rst 2019-10-11 09:33:10 +02:00
Stéphane Bidoul (ACSONE) 7fbf939535 [MIG] server_environment from 11 to 12 2019-10-11 09:33:10 +02:00
Thomas Binsfeld 4d0a144d2c [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
2019-10-11 09:33:10 +02:00
Guewen Baconnier 621630911a 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
2019-10-11 09:33:11 +02:00
Stéphane Bidoul (ACSONE) 00e349569b remove obsolete .pot files [ci skip] 2019-10-11 09:33:10 +02:00
Thomas Binsfeld d6780098e2 [REF] Server Environment: remove dependency on server_environement_files
From https://github.com/OCA/server-env/issues/10
2019-10-11 09:33:10 +02:00
Stéphane Bidoul (ACSONE) f899fb2ace server_environment: bump version
To trigger rebuild following change in setup.py
2019-10-11 09:33:10 +02:00
OCA Transbot eb0e18f7f3 OCA Transbot updated translations from Transifex 2019-10-11 09:33:10 +02:00
Thierry Ducrest 298fe1cbc8 [FIX] bug on view by changing generated table field name 2019-10-11 09:33:10 +02:00
Thierry Ducrest 9dd8f73f65 [MIG] server_environment: Migration to 11.0 2019-10-11 09:33:10 +02:00
Adrien Peiffer (ACSONE) 0429bfd3ed Migration of server_environment to 10.0 2019-10-11 09:33:10 +02:00