-
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 #1
base: 18.0
Are you sure you want to change the base?
Commits on Oct 1, 2024
-
[ADD] server evironment file + sample
(lp:c2c-addons/6.1 rev 11)
Configuration menu - View commit details
-
Copy full SHA for b696ae9 - Browse repository at this point
Copy the full SHA b696ae9View 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 0db446f - Browse repository at this point
Copy the full SHA 0db446fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad0d111 - Browse repository at this point
Copy the full SHA ad0d111View 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 526fb12 - Browse repository at this point
Copy the full SHA 526fb12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92feaa2 - Browse repository at this point
Copy the full SHA 92feaa2View 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 dcd0354 - Browse repository at this point
Copy the full SHA dcd0354View commit details -
Configuration menu - View commit details
-
Copy full SHA for 39f6449 - Browse repository at this point
Copy the full SHA 39f6449View commit details -
Configuration menu - View commit details
-
Copy full SHA for 174a342 - Browse repository at this point
Copy the full SHA 174a342View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9afd540 - Browse repository at this point
Copy the full SHA 9afd540View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74e9427 - Browse repository at this point
Copy the full SHA 74e9427View commit details -
Configuration menu - View commit details
-
Copy full SHA for e4e6523 - Browse repository at this point
Copy the full SHA e4e6523View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55839b2 - Browse repository at this point
Copy the full SHA 55839b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7f1075 - Browse repository at this point
Copy the full SHA f7f1075View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2eb985 - Browse repository at this point
Copy the full SHA b2eb985View 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 b68f4b0 - Browse repository at this point
Copy the full SHA b68f4b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f2e269 - Browse repository at this point
Copy the full SHA 8f2e269View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75b6b8a - Browse repository at this point
Copy the full SHA 75b6b8aView 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 727ae3f - Browse repository at this point
Copy the full SHA 727ae3fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d72eda - Browse repository at this point
Copy the full SHA 0d72edaView commit details -
[FIX] unconfigured server_environment doesn't play
nice with static files
Configuration menu - View commit details
-
Copy full SHA for c972fd9 - Browse repository at this point
Copy the full SHA c972fd9View commit details -
Configuration menu - View commit details
-
Copy full SHA for f20b56f - Browse repository at this point
Copy the full SHA f20b56fView commit details -
Configuration menu - View commit details
-
Copy full SHA for a33df8b - Browse repository at this point
Copy the full SHA a33df8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f1ca00 - Browse repository at this point
Copy the full SHA 1f1ca00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e78113 - Browse repository at this point
Copy the full SHA 1e78113View 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 04a4506 - Browse repository at this point
Copy the full SHA 04a4506View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2dabd89 - Browse repository at this point
Copy the full SHA 2dabd89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c1daea - Browse repository at this point
Copy the full SHA 7c1daeaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 83fc0ba - Browse repository at this point
Copy the full SHA 83fc0baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 74e725f - Browse repository at this point
Copy the full SHA 74e725fView commit details -
server_environment: bump version
To trigger rebuild following change in setup.py
Configuration menu - View commit details
-
Copy full SHA for 3b40014 - Browse repository at this point
Copy the full SHA 3b40014View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa45d5b - Browse repository at this point
Copy the full SHA aa45d5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for df3aaa7 - Browse repository at this point
Copy the full SHA df3aaa7View 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 b5cae48 - Browse repository at this point
Copy the full SHA b5cae48View 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 4d12b9b - Browse repository at this point
Copy the full SHA 4d12b9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 938a362 - Browse repository at this point
Copy the full SHA 938a362View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4829281 - Browse repository at this point
Copy the full SHA 4829281View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02cec4d - Browse repository at this point
Copy the full SHA 02cec4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d362e7 - Browse repository at this point
Copy the full SHA 6d362e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08f4e04 - Browse repository at this point
Copy the full SHA 08f4e04View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb71ed0 - Browse repository at this point
Copy the full SHA eb71ed0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67544aa - Browse repository at this point
Copy the full SHA 67544aaView 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 dd09636 - Browse repository at this point
Copy the full SHA dd09636View commit details -
server_environment: Improve tests.common to allow redefinition of ser…
…v_config application
Configuration menu - View commit details
-
Copy full SHA for 4843249 - Browse repository at this point
Copy the full SHA 4843249View commit details -
Configuration menu - View commit details
-
Copy full SHA for 09d549f - Browse repository at this point
Copy the full SHA 09d549fView 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 2de38eb - Browse repository at this point
Copy the full SHA 2de38ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 224f5c5 - Browse repository at this point
Copy the full SHA 224f5c5View commit details -
Update server_environment/serv_config.py
Co-authored-by: Moises Lopez - https://www.vauxoo.com/ <moylop260@vauxoo.com>
Configuration menu - View commit details
-
Copy full SHA for b1199a7 - Browse repository at this point
Copy the full SHA b1199a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 391aa01 - Browse repository at this point
Copy the full SHA 391aa01View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4e4957 - Browse repository at this point
Copy the full SHA a4e4957View 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 14f98ea - Browse repository at this point
Copy the full SHA 14f98eaView 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 8cc76ec - Browse repository at this point
Copy the full SHA 8cc76ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 21a6fe9 - Browse repository at this point
Copy the full SHA 21a6fe9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 467ffdd - Browse repository at this point
Copy the full SHA 467ffddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 28be183 - Browse repository at this point
Copy the full SHA 28be183View 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 81a8548 - Browse repository at this point
Copy the full SHA 81a8548View 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 aa7a038 - Browse repository at this point
Copy the full SHA aa7a038View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9e1db3 - Browse repository at this point
Copy the full SHA c9e1db3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9405016 - Browse repository at this point
Copy the full SHA 9405016View 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 35a519f - Browse repository at this point
Copy the full SHA 35a519fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 94ffb50 - Browse repository at this point
Copy the full SHA 94ffb50View commit details -
Configuration menu - View commit details
-
Copy full SHA for ddace5f - Browse repository at this point
Copy the full SHA ddace5fView 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 4e50d1d - Browse repository at this point
Copy the full SHA 4e50d1dView 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 fd29b16 - Browse repository at this point
Copy the full SHA fd29b16View 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 031c7da - Browse repository at this point
Copy the full SHA 031c7daView 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 9b36e33 - Browse repository at this point
Copy the full SHA 9b36e33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 843fa0c - Browse repository at this point
Copy the full SHA 843fa0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e718d7c - Browse repository at this point
Copy the full SHA e718d7cView 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 8fcade7 - Browse repository at this point
Copy the full SHA 8fcade7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9965ffe - Browse repository at this point
Copy the full SHA 9965ffeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8789543 - Browse repository at this point
Copy the full SHA 8789543View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c56bf6 - Browse repository at this point
Copy the full SHA 9c56bf6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54a621b - Browse repository at this point
Copy the full SHA 54a621bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ada9d1 - Browse repository at this point
Copy the full SHA 0ada9d1View 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 c1ba10d - Browse repository at this point
Copy the full SHA c1ba10dView 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 269d254 - Browse repository at this point
Copy the full SHA 269d254View 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 98f5575 - Browse repository at this point
Copy the full SHA 98f5575View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18c9854 - Browse repository at this point
Copy the full SHA 18c9854View 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 3eaaaa2 - Browse repository at this point
Copy the full SHA 3eaaaa2View 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 acb9242 - Browse repository at this point
Copy the full SHA acb9242View 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 839eafc - Browse repository at this point
Copy the full SHA 839eafcView commit details -
Configuration menu - View commit details
-
Copy full SHA for f3923ac - Browse repository at this point
Copy the full SHA f3923acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ebc855 - Browse repository at this point
Copy the full SHA 9ebc855View 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 49bc7a0 - Browse repository at this point
Copy the full SHA 49bc7a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b388f4f - Browse repository at this point
Copy the full SHA b388f4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 342da8d - Browse repository at this point
Copy the full SHA 342da8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1be060b - Browse repository at this point
Copy the full SHA 1be060bView commit details