Commit Graph

38 Commits

Author SHA1 Message Date
Olar Alca [Vauxoo] 633c49315f
Update server_environment/serv_config.py
Co-authored-by: Moises Lopez - https://www.vauxoo.com/ <moylop260@vauxoo.com>
2020-09-22 12:31:56 -05:00
OlarAlca f1ce51d78f [FIX] server_environment: changed warning for debug log
- Even when the app server_environment was not installed
the method load_running_env was triggering a warning in the
logger.
2020-09-22 12:22:51 -05:00
OCA-git-bot 88e6f8bbbd Merge PR #35 into 12.0
Signed-off-by simahawk
2020-04-20 11:55:25 +00:00
Simone Orsi ecce24d296 fixup! server_environment: running_env default to `test` (fix #44) 2020-04-16 14:51:41 +02:00
Simone Orsi 7d6ebde333 server_environment: running_env default to `test` (fix #44) 2020-04-16 14:51:31 +02:00
Guewen Baconnier 47f23fb308 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.
2019-12-20 16:22:58 +01:00
Stéphane Bidoul (ACSONE) b53480fc8b
Add missing _descriptions 2018-11-13 12:30:21 +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
Guewen Baconnier 80a56d320a
Reinforce server_environment base tests 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 d52e93a743
Add SERVER_ENV_CONFIG_SECRET alongside SERVER_ENV_CONFIG
Allows to isolate the secrets in your deployment
2018-11-05 17:35:29 +01:00
Guewen Baconnier ec14e3da0a
Add SERVER_ENV_CONFIG to configure vars from env. variable 2018-11-05 17:35:29 +01:00
Thierry Ducrest cd0a2b2186
[FIX] bug on view by changing generated table field name 2018-11-05 17:35:28 +01:00
Thierry Ducrest 1cb4b8d418
Remove file encoding directive 2018-11-05 17:35:28 +01:00
Guewen Baconnier bce8bbfb6e
Remove encoding declaration from XML view
It's no longer supported in lxml:

      File "/opt/odoo/external-src/server-tools/server_environment/serv_config.py", line 228, in _build_osv
        cls._arch = etree.fromstring(arch)
      File "src/lxml/lxml.etree.pyx", line 3213, in lxml.etree.fromstring (src/lxml/lxml.etree.c:82934)
      File "src/lxml/parser.pxi", line 1814, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:124471)
    ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.
2018-11-05 17:35:27 +01:00
Thierry Ducrest d446152585
[MIG] server_environment: Migration to 11.0 2018-11-05 17:35:27 +01:00
Adrien Peiffer (ACSONE) 6dabf0aa36
[FIX] Flake8 2018-11-05 17:35:27 +01:00
Adrien Peiffer (ACSONE) a21b319ad7
Migration of server_environment to 10.0 2018-11-05 17:35:27 +01:00
Stéphane Bidoul (ACSONE) 17c815287e
[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
2018-11-05 17:35:26 +01:00
Alexandre Fayolle 23e5102e9e
fix pep8 W503 2018-11-05 17:35:25 +01:00
Holger Brunn df7c6d74f7
[FIX] travis 2018-11-05 17:35:24 +01:00
Daniel Reis caab02c6d0
Fix pylint on server_environment 2018-11-05 17:35:24 +01:00
Nicolas Bessi 4e2deaf914
Remove dead commented code 2018-11-05 17:35:24 +01:00
Nicolas Bessi 929ee81299
Improve performance by moving _build_osv in init 2018-11-05 17:35:24 +01:00
Nicolas Bessi b3d611f3ff
Refactor in order to support dotted parameters 2018-11-05 17:35:24 +01:00
Nicolas Bessi ab543e5734
Add doctstring and remove dead code 2018-11-05 17:35:23 +01:00
Nicolas Bessi ddce18b5ed
Port server environment to version 8.0 2018-11-05 17:35:23 +01:00
Nicolas Bessi 7e4ff314d2
Moving server environment module and sample module 2018-11-05 17:35:23 +01:00
Stéphane Bidoul 4fbb2e0977
move all modules to __unported__ on master branch and set installable=False 2018-11-05 17:35:23 +01:00
Yannick Vaucher a5dd059f90
[PEP8] server_environment 2018-11-05 17:35:23 +01:00
Alexandre Fayolle 1ea1683b69
[FIX] name error in import 2018-11-05 17:35:22 +01:00
Alexandre Fayolle 32efb503fd
[7.0] 1st pass at porting server_environment 2018-11-05 17:35:22 +01:00
@ 86ab8421e4
[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)
2018-11-05 17:35:22 +01:00
@ 012dcb1e43
[MRG] from upstream
(lp:c2c-addons/6.1  rev 45.1.4)
2018-11-05 17:35:22 +01:00
Florent Xicluna 4d1056b861
[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)
2018-11-05 17:35:21 +01:00
unknown 0102f16295
[FIX] typo
(lp:c2c-addons/6.1  rev 28.1.1)
2018-11-05 17:35:21 +01:00
unknown 8a6bfb39c7
[FIX] openerp\assert_exit_level does not exist ! in server_environment
(lp:c2c-addons/6.1  rev 11.1.4)
2018-11-05 17:35:21 +01:00
Joël Grand-Guillaume bead9b95fb
[ADD] server evironment file + sample
(lp:c2c-addons/6.1  rev 11)
2018-11-05 17:35:21 +01:00