-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[18.0][MIG] server_environment: Migration to 18.0 #2
[18.0][MIG] server_environment: Migration to 18.0 #2
Commits on Sep 24, 2024
-
[ADD] server evironment file + sample
(lp:c2c-addons/6.1 rev 11)
Configuration menu - View commit details
-
Copy full SHA for 420ebc4 - Browse repository at this point
Copy the full SHA 420ebc4View commit details -
[FIX] openerp\assert_exit_level does not exist ! in server_environment
(lp:c2c-addons/6.1 rev 11.1.4)
Configuration menu - View commit details
-
Copy full SHA for 8e5c9f0 - Browse repository at this point
Copy the full SHA 8e5c9f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 49695e1 - Browse repository at this point
Copy the full SHA 49695e1View commit details -
[FIX] drop the hack for the GTK client, because for 6.1 the web clien…
…t is the blessed target. (lp:c2c-addons/6.1 rev 40.2.1)
Configuration menu - View commit details
-
Copy full SHA for baea6d5 - Browse repository at this point
Copy the full SHA baea6d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fb7e61 - Browse repository at this point
Copy the full SHA 3fb7e61View commit details -
[MRG] Fix by florent.x on server_environment: drop the hack for the G…
…TK client, because for 6.1 the web client is the blessed target. (lp:c2c-addons/6.1 rev 116)
Configuration menu - View commit details
-
Copy full SHA for 93fab62 - Browse repository at this point
Copy the full SHA 93fab62View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5c1155 - Browse repository at this point
Copy the full SHA c5c1155View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0f1e27 - Browse repository at this point
Copy the full SHA b0f1e27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23027a3 - Browse repository at this point
Copy the full SHA 23027a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6eacd69 - Browse repository at this point
Copy the full SHA 6eacd69View commit details -
Configuration menu - View commit details
-
Copy full SHA for dbea5fc - Browse repository at this point
Copy the full SHA dbea5fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 84fc080 - Browse repository at this point
Copy the full SHA 84fc080View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23eea19 - Browse repository at this point
Copy the full SHA 23eea19View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1ea0d3 - Browse repository at this point
Copy the full SHA f1ea0d3View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 926161a - Browse repository at this point
Copy the full SHA 926161aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ef4d4c - Browse repository at this point
Copy the full SHA 5ef4d4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for f9e9e7a - Browse repository at this point
Copy the full SHA f9e9e7aView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 38388c3 - Browse repository at this point
Copy the full SHA 38388c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b3c528 - Browse repository at this point
Copy the full SHA 6b3c528View commit details -
[FIX] unconfigured server_environment doesn't play
nice with static files
Configuration menu - View commit details
-
Copy full SHA for 5fbdc98 - Browse repository at this point
Copy the full SHA 5fbdc98View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9221bb - Browse repository at this point
Copy the full SHA c9221bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd2a005 - Browse repository at this point
Copy the full SHA bd2a005View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e9ef16 - Browse repository at this point
Copy the full SHA 0e9ef16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 546314d - Browse repository at this point
Copy the full SHA 546314dView commit details -
[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
Configuration menu - View commit details
-
Copy full SHA for 101d255 - Browse repository at this point
Copy the full SHA 101d255View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cf57ae - Browse repository at this point
Copy the full SHA 7cf57aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for c624c18 - Browse repository at this point
Copy the full SHA c624c18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32ad216 - Browse repository at this point
Copy the full SHA 32ad216View commit details -
Configuration menu - View commit details
-
Copy full SHA for c94246b - Browse repository at this point
Copy the full SHA c94246bView commit details -
server_environment: bump version
To trigger rebuild following change in setup.py
Configuration menu - View commit details
-
Copy full SHA for a5ca75f - Browse repository at this point
Copy the full SHA a5ca75fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 961e605 - Browse repository at this point
Copy the full SHA 961e605View commit details -
Configuration menu - View commit details
-
Copy full SHA for 903b1f3 - Browse repository at this point
Copy the full SHA 903b1f3View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 908151b - Browse repository at this point
Copy the full SHA 908151bView commit details -
[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
Configuration menu - View commit details
-
Copy full SHA for cfdaa26 - Browse repository at this point
Copy the full SHA cfdaa26View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0df922 - Browse repository at this point
Copy the full SHA e0df922View commit details -
Configuration menu - View commit details
-
Copy full SHA for 985a1d3 - Browse repository at this point
Copy the full SHA 985a1d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01007eb - Browse repository at this point
Copy the full SHA 01007ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 007aa8f - Browse repository at this point
Copy the full SHA 007aa8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ecc0df7 - Browse repository at this point
Copy the full SHA ecc0df7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d599669 - Browse repository at this point
Copy the full SHA d599669View commit details -
Configuration menu - View commit details
-
Copy full SHA for af245c8 - Browse repository at this point
Copy the full SHA af245c8View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for f1ef218 - Browse repository at this point
Copy the full SHA f1ef218View commit details -
server_environment: Improve tests.common to allow redefinition of ser…
…v_config application
Configuration menu - View commit details
-
Copy full SHA for 186b98b - Browse repository at this point
Copy the full SHA 186b98bView commit details -
Configuration menu - View commit details
-
Copy full SHA for bbfca6c - Browse repository at this point
Copy the full SHA bbfca6cView commit details -
Fix server_environment version
The PR OCA#45 has been merged manually and a new version was not bumped.
Configuration menu - View commit details
-
Copy full SHA for e19859c - Browse repository at this point
Copy the full SHA e19859cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8dbf2af - Browse repository at this point
Copy the full SHA 8dbf2afView commit details -
Update server_environment/serv_config.py
Co-authored-by: Moises Lopez - https://www.vauxoo.com/ <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 58225c1 - Browse repository at this point
Copy the full SHA 58225c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for c22d842 - Browse repository at this point
Copy the full SHA c22d842View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ff8716 - Browse repository at this point
Copy the full SHA 0ff8716View commit details -
Translated using Weblate (French)
Currently translated at 8.1% (8 of 98 strings) Translation: server-env-14.0/server-env-14.0-server_environment Translate-URL: https://translation.odoo-community.org/projects/server-env-14-0/server-env-14-0-server_environment/fr/
Configuration menu - View commit details
-
Copy full SHA for 9b6f325 - Browse repository at this point
Copy the full SHA 9b6f325View commit details -
Translated using Weblate (Spanish)
Currently translated at 9.1% (9 of 98 strings) Translation: server-env-14.0/server-env-14.0-server_environment Translate-URL: https://translation.odoo-community.org/projects/server-env-14-0/server-env-14-0-server_environment/es/
Configuration menu - View commit details
-
Copy full SHA for 5bd2348 - Browse repository at this point
Copy the full SHA 5bd2348View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5339c4 - Browse repository at this point
Copy the full SHA e5339c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for be7bf0f - Browse repository at this point
Copy the full SHA be7bf0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 325f1d4 - Browse repository at this point
Copy the full SHA 325f1d4View commit details -
15.0 server_environment is Production/Stable
server_environment is a dependency of other modules which are in this status and now that we are checking this, we need to declare the maturity explicitly
Configuration menu - View commit details
-
Copy full SHA for 367a580 - Browse repository at this point
Copy the full SHA 367a580View commit details -
server_environment: Update default fields label
this to avoid Odoo warning messages on labels check
Configuration menu - View commit details
-
Copy full SHA for 7584671 - Browse repository at this point
Copy the full SHA 7584671View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3619c9b - Browse repository at this point
Copy the full SHA 3619c9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bcffff - Browse repository at this point
Copy the full SHA 9bcffffView commit details -
Remove required from tech_name mixin
In some cases, we want to use a tech_name, but we do not use server environment on all the records, so tech_name should not be required.
Configuration menu - View commit details
-
Copy full SHA for 33cee64 - Browse repository at this point
Copy the full SHA 33cee64View commit details -
Configuration menu - View commit details
-
Copy full SHA for c28256d - Browse repository at this point
Copy the full SHA c28256dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 567cf47 - Browse repository at this point
Copy the full SHA 567cf47View commit details -
server_env: fix inverse method (closes OCA#151)
``odoo.fields.determine`` requires inverse methods to have ``__name__`` attribute. Unfortunately with ``partialmethod`` this attribute is not propagated even by using ``functools.update_wrapper``. In any case, `update_wrapper` would propagate the wrapped func name which is not the same here. Introduced by odoo/odoo@3654465
Configuration menu - View commit details
-
Copy full SHA for cf2fe3c - Browse repository at this point
Copy the full SHA cf2fe3cView commit details -
[IMP] Server env default fields string
Not all fields have their string in the args, but '.string' returns the computed (based on field name) string if not set in the args.
Configuration menu - View commit details
-
Copy full SHA for 138160f - Browse repository at this point
Copy the full SHA 138160fView commit details -
Translated using Weblate (Italian)
Currently translated at 6.5% (7 of 107 strings) Translation: server-env-16.0/server-env-16.0-server_environment Translate-URL: https://translation.odoo-community.org/projects/server-env-16-0/server-env-16-0-server_environment/it/
Configuration menu - View commit details
-
Copy full SHA for 006b9d6 - Browse repository at this point
Copy the full SHA 006b9d6View commit details -
Translated using Weblate (Spanish)
Currently translated at 65.4% (70 of 107 strings) Translation: server-env-16.0/server-env-16.0-server_environment Translate-URL: https://translation.odoo-community.org/projects/server-env-16-0/server-env-16-0-server_environment/es/
Configuration menu - View commit details
-
Copy full SHA for 1b20f04 - Browse repository at this point
Copy the full SHA 1b20f04View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32dd7a1 - Browse repository at this point
Copy the full SHA 32dd7a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab2c938 - Browse repository at this point
Copy the full SHA ab2c938View commit details -
Translated using Weblate (Spanish)
Currently translated at 100.0% (107 of 107 strings) Translation: server-env-16.0/server-env-16.0-server_environment Translate-URL: https://translation.odoo-community.org/projects/server-env-16-0/server-env-16-0-server_environment/es/
Configuration menu - View commit details
-
Copy full SHA for e29f679 - Browse repository at this point
Copy the full SHA e29f679View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba8a4b2 - Browse repository at this point
Copy the full SHA ba8a4b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63c8af2 - Browse repository at this point
Copy the full SHA 63c8af2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24fef36 - Browse repository at this point
Copy the full SHA 24fef36View commit details -
Configuration menu - View commit details
-
Copy full SHA for 49e9a47 - Browse repository at this point
Copy the full SHA 49e9a47View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42b63d6 - Browse repository at this point
Copy the full SHA 42b63d6View commit details -
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: server-env-17.0/server-env-17.0-server_environment Translate-URL: https://translation.odoo-community.org/projects/server-env-17-0/server-env-17-0-server_environment/
Configuration menu - View commit details
-
Copy full SHA for 504dfd1 - Browse repository at this point
Copy the full SHA 504dfd1View commit details -
Translated using Weblate (Spanish)
Currently translated at 100.0% (107 of 107 strings) Translation: server-env-17.0/server-env-17.0-server_environment Translate-URL: https://translation.odoo-community.org/projects/server-env-17-0/server-env-17-0-server_environment/es/
Configuration menu - View commit details
-
Copy full SHA for 0f27063 - Browse repository at this point
Copy the full SHA 0f27063View commit details -
Translated using Weblate (Italian)
Currently translated at 100.0% (107 of 107 strings) Translation: server-env-17.0/server-env-17.0-server_environment Translate-URL: https://translation.odoo-community.org/projects/server-env-17-0/server-env-17-0-server_environment/it/
Configuration menu - View commit details
-
Copy full SHA for 61c44d9 - Browse repository at this point
Copy the full SHA 61c44d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17f47d0 - Browse repository at this point
Copy the full SHA 17f47d0View commit details -
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: server-env-17.0/server-env-17.0-server_environment Translate-URL: https://translation.odoo-community.org/projects/server-env-17-0/server-env-17-0-server_environment/
Configuration menu - View commit details
-
Copy full SHA for 403e85a - Browse repository at this point
Copy the full SHA 403e85aView commit details -
Translated using Weblate (Swedish)
Currently translated at 100.0% (106 of 106 strings) Translation: server-env-17.0/server-env-17.0-server_environment Translate-URL: https://translation.odoo-community.org/projects/server-env-17-0/server-env-17-0-server_environment/sv/
Configuration menu - View commit details
-
Copy full SHA for 32b6447 - Browse repository at this point
Copy the full SHA 32b6447View commit details -
server_environment: Fix value assignation in compute from default
Since previous commit adding support for ssl certificate auth, field smtp_authentication in ir.mail_server, became a field managed by environment, when mail_environment is installed. This field has been defined using a default value relying on the compute_default property allowing to define a compute function, which matches the default value of the field. However, as the function _compute_server_env_from_default was broken, because it did not assign the computed value to the field, the field was empty and connection was broken.
Configuration menu - View commit details
-
Copy full SHA for 9214e67 - Browse repository at this point
Copy the full SHA 9214e67View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9debfc - Browse repository at this point
Copy the full SHA e9debfcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 53cf23a - Browse repository at this point
Copy the full SHA 53cf23aView commit details -
[FIX] server_environment: compute_default assign
Revert "server_environment: Fix value assignation in compute from default" This reverts commit 464f3ec which would break other modules using server_environment. The original issue must be fixed in mail_environment.
Configuration menu - View commit details
-
Copy full SHA for 6875436 - Browse repository at this point
Copy the full SHA 6875436View commit details -
Configuration menu - View commit details
-
Copy full SHA for abb0c72 - Browse repository at this point
Copy the full SHA abb0c72View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9533df - Browse repository at this point
Copy the full SHA e9533dfView commit details -
[IMP] server_environmnet: allow to overwrite odoo config options from…
… server_environment_files
Configuration menu - View commit details
-
Copy full SHA for b9ec8c3 - Browse repository at this point
Copy the full SHA b9ec8c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1105d02 - Browse repository at this point
Copy the full SHA 1105d02View commit details