Commit Graph

203 Commits

Author SHA1 Message Date
oca-travis aa16e5cd97 [UPD] Update server_environment_files.pot 2018-11-15 12:32:45 +00:00
oca-travis dc10517b9b [UPD] Update server_environment.pot 2018-11-15 12:32:44 +00:00
OCA-git-bot 862cd68e82 [ADD] setup.py 2018-11-15 12:26:47 +00:00
OCA-git-bot 15fc38be36 [UPD] README.rst 2018-11-15 12:26:47 +00:00
Guewen Baconnier 0dfe22e524
Merge pull request #18 from acsone/12.0-mig-server_environment
[12.0][MIG] server environment from 11.0
2018-11-15 13:26:42 +01:00
Stéphane Bidoul (ACSONE) b53480fc8b
Add missing _descriptions 2018-11-13 12:30:21 +01:00
Stéphane Bidoul (ACSONE) ef1b42ce8a
[IMP] clarify contributors lists 2018-11-13 11:09:09 +01:00
Stéphane Bidoul (ACSONE) 7de4657d24
[IMP] copyright headers
Use GPL licenses everywhere, to match original code.
2018-11-13 11:05:47 +01:00
Stéphane Bidoul (ACSONE) 04ed0575a1
[FIX] server_environment: fix spelling error 2018-11-06 10:40:16 +01:00
Stéphane Bidoul (ACSONE) 55e5ff330f
[IMP] server_environment: readme fragments 2018-11-06 10:40:16 +01:00
Stéphane Bidoul (ACSONE) ca116964ca
[MIG] server_environment from 11 to 12 2018-11-06 10:40:16 +01:00
Stéphane Bidoul (ACSONE) 41e5bcb623
[UPD] Refresh travis.yml 2018-11-06 10:40:16 +01:00
Thomas Binsfeld f681ae6543
[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
2018-11-06 10:40:16 +01:00
Stéphane Bidoul (ACSONE) 42af5c69e8
[ADD] setup.py 2018-11-06 10:40:16 +01:00
Stéphane Bidoul (ACSONE) d6a58d5de5
remove obsolete .pot files [ci skip] 2018-11-05 17:35:53 +01:00
Thierry Ducrest e6f7531c4a
[MIG] server_environment_files_sample: Migration to 11.0 2018-11-05 17:35:53 +01:00
Stéphane Bidoul (ACSONE) 272b5f9785
server_environment_ir_config_parameter: handle empty values better 2018-11-05 17:35:52 +01:00
Stéphane Bidoul (ACSONE) 2618155ac4
server_environment_ir_config_parameter 2018-11-05 17:35:52 +01:00
Adrien Peiffer (ACSONE) ec443a8c9a
Migration of server_environment to 10.0 2018-11-05 17:35:52 +01:00
Pedro M. Baeza fdec11a632
[MIG] Rename manifest files 2018-11-05 17:35:52 +01:00
Pedro M. Baeza 48765740bf
[MIG] Make modules uninstallable 2018-11-05 17:35:52 +01:00
Alexandre Fayolle 56ffc46f11
9.0 migration of server_environment 2018-11-05 17:35:52 +01:00
Pedro M. Baeza 41f1458732
[MIG] Make modules uninstallable 2018-11-05 17:35:51 +01:00
Stéphane Bidoul 6fe74afc07
[UPD] prefix versions with 8.0 2018-11-05 17:35:51 +01:00
Yannick Vaucher f7042be74f
Add missing default oca icons 2018-11-05 17:35:51 +01:00
Alexandre Fayolle 91accd2b23
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.
2018-11-05 17:35:51 +01:00
Yannick Vaucher 0aeccf3fa1
Add license key in __openerp__.py 2018-11-05 17:35:51 +01:00
Nicolas Bessi 013dc83400
Fix typo in dir name 2018-11-05 17:35:51 +01:00
Guewen Baconnier 06a5dc0fae
Fix iteration on records 2018-11-05 17:35:33 +01:00
Guewen Baconnier 675335a26b
Use SavepointCase instead of TransactionCase
It means less records to create for each test
2018-11-05 17:35:33 +01:00
Guewen Baconnier 95f5e2abaf
Add tests and support of _inherits 2018-11-05 17:35:33 +01:00
Guewen Baconnier bd67585150
fixup! Fixes for review feedbacks 2018-11-05 17:35:32 +01:00
Guewen Baconnier 8325b7ee74
fixup! Infer configparser getter from field type 2018-11-05 17:35:32 +01:00
Guewen Baconnier abbfec896b
fixup! Update documentation of server_environment, bump 2018-11-05 17:35:32 +01:00
Guewen Baconnier ea5204d471
Fixes for review feedbacks 2018-11-05 17:35:32 +01:00
Guewen Baconnier 98bc9ea988
Infer configparser getter from field type 2018-11-05 17:35:32 +01:00
Guewen Baconnier e096c209ed
Add tests for the server env mixin 2018-11-05 17:35:32 +01:00
Guewen Baconnier 80a56d320a
Reinforce server_environment base tests 2018-11-05 17:35:31 +01:00
Guewen Baconnier 5b977f8df5
Add SERVER_ENV_CONFIG_SECRET alongside SERVER_ENV_CONFIG
Allows to isolate the secrets in your deployment
2018-11-05 17:35:31 +01:00
Guewen Baconnier 107ca7da9d
Update documentation of server_environment, bump 2018-11-05 17:35:31 +01:00
Guewen Baconnier 398b324b03
Allow integration with keychain
By adding options to change the compute and inverse methods for default
fields
2018-11-05 17:35:31 +01:00
Guewen Baconnier e8da1f3d25
Make server_environment_files optional 2018-11-05 17:35:31 +01:00
Guewen Baconnier c5f56e6336
Allow to edit all fields on creation 2018-11-05 17:35:31 +01:00
Guewen Baconnier d7f0a1b24b
Use global section name as first part of the section 2018-11-05 17:35:30 +01:00
Guewen Baconnier 27c1a41f24
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.
2018-11-05 17:35:30 +01:00
Guewen Baconnier e0832cb649
Add global section 2018-11-05 17:35:30 +01:00
Guewen Baconnier 572f581bfa
Use a dictionary to configure the fields 2018-11-05 17:35:30 +01:00
Guewen Baconnier 70d6966ce0
Fix a few small issues in mixin 2018-11-05 17:35:30 +01:00
Guewen Baconnier f7e207a1a1
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.
2018-11-05 17:35:29 +01:00
Guewen Baconnier d917407672
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).
2018-11-05 17:35:29 +01:00