-
-
Notifications
You must be signed in to change notification settings - Fork 155
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 from 17.0 #204
base: 18.0
Are you sure you want to change the base?
Commits on Sep 30, 2024
-
[ADD] server evironment file + sample
(lp:c2c-addons/6.1 rev 11)
Configuration menu - View commit details
-
Copy full SHA for a07fc2d - Browse repository at this point
Copy the full SHA a07fc2dView 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 17e2969 - Browse repository at this point
Copy the full SHA 17e2969View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf22b65 - Browse repository at this point
Copy the full SHA bf22b65View 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 759d7a1 - Browse repository at this point
Copy the full SHA 759d7a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for b4d3c4d - Browse repository at this point
Copy the full SHA b4d3c4dView 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 1fee868 - Browse repository at this point
Copy the full SHA 1fee868View commit details -
Configuration menu - View commit details
-
Copy full SHA for 627817f - Browse repository at this point
Copy the full SHA 627817fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b44c67a - Browse repository at this point
Copy the full SHA b44c67aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4810e47 - Browse repository at this point
Copy the full SHA 4810e47View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7083994 - Browse repository at this point
Copy the full SHA 7083994View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0addec - Browse repository at this point
Copy the full SHA b0addecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9012c9c - Browse repository at this point
Copy the full SHA 9012c9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for f115489 - Browse repository at this point
Copy the full SHA f115489View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58d905f - Browse repository at this point
Copy the full SHA 58d905fView 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 1cbc4d4 - Browse repository at this point
Copy the full SHA 1cbc4d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6adc4e - Browse repository at this point
Copy the full SHA a6adc4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2bb0a4b - Browse repository at this point
Copy the full SHA 2bb0a4bView 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 1de9f54 - Browse repository at this point
Copy the full SHA 1de9f54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 643b317 - Browse repository at this point
Copy the full SHA 643b317View commit details -
[FIX] unconfigured server_environment doesn't play
nice with static files
Configuration menu - View commit details
-
Copy full SHA for 8cda068 - Browse repository at this point
Copy the full SHA 8cda068View commit details -
Configuration menu - View commit details
-
Copy full SHA for e275b0f - Browse repository at this point
Copy the full SHA e275b0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 88bf62c - Browse repository at this point
Copy the full SHA 88bf62cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 54b26a9 - Browse repository at this point
Copy the full SHA 54b26a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4008e2c - Browse repository at this point
Copy the full SHA 4008e2cView 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 4ac862c - Browse repository at this point
Copy the full SHA 4ac862cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a529fe - Browse repository at this point
Copy the full SHA 6a529feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 87e2dd9 - Browse repository at this point
Copy the full SHA 87e2dd9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e3ddd4 - Browse repository at this point
Copy the full SHA 2e3ddd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19b5cf6 - Browse repository at this point
Copy the full SHA 19b5cf6View commit details -
server_environment: bump version
To trigger rebuild following change in setup.py
Configuration menu - View commit details
-
Copy full SHA for 68356dd - Browse repository at this point
Copy the full SHA 68356ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for bbbf677 - Browse repository at this point
Copy the full SHA bbbf677View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5dc4273 - Browse repository at this point
Copy the full SHA 5dc4273View 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 b2bc3c2 - Browse repository at this point
Copy the full SHA b2bc3c2View 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 f05c431 - Browse repository at this point
Copy the full SHA f05c431View commit details -
Configuration menu - View commit details
-
Copy full SHA for 547b45f - Browse repository at this point
Copy the full SHA 547b45fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 13af908 - Browse repository at this point
Copy the full SHA 13af908View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4980c4c - Browse repository at this point
Copy the full SHA 4980c4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b6f1b1 - Browse repository at this point
Copy the full SHA 1b6f1b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd4de68 - Browse repository at this point
Copy the full SHA dd4de68View commit details -
Configuration menu - View commit details
-
Copy full SHA for b87b9cf - Browse repository at this point
Copy the full SHA b87b9cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9af1730 - Browse repository at this point
Copy the full SHA 9af1730View 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 9df937b - Browse repository at this point
Copy the full SHA 9df937bView commit details -
server_environment: Improve tests.common to allow redefinition of ser…
…v_config application
Configuration menu - View commit details
-
Copy full SHA for 650fc6a - Browse repository at this point
Copy the full SHA 650fc6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 790631b - Browse repository at this point
Copy the full SHA 790631bView commit details -
Fix server_environment version
The PR #45 has been merged manually and a new version was not bumped.
Configuration menu - View commit details
-
Copy full SHA for 8ef5147 - Browse repository at this point
Copy the full SHA 8ef5147View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1d6602 - Browse repository at this point
Copy the full SHA e1d6602View 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 0487cd7 - Browse repository at this point
Copy the full SHA 0487cd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42877bf - Browse repository at this point
Copy the full SHA 42877bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f99468 - Browse repository at this point
Copy the full SHA 1f99468View 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 662566a - Browse repository at this point
Copy the full SHA 662566aView 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 08bb66a - Browse repository at this point
Copy the full SHA 08bb66aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ebf9e88 - Browse repository at this point
Copy the full SHA ebf9e88View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea5b130 - Browse repository at this point
Copy the full SHA ea5b130View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5f49a0 - Browse repository at this point
Copy the full SHA f5f49a0View 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 c93fbaf - Browse repository at this point
Copy the full SHA c93fbafView 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 6a91ed7 - Browse repository at this point
Copy the full SHA 6a91ed7View commit details -
Configuration menu - View commit details
-
Copy full SHA for f0e731d - Browse repository at this point
Copy the full SHA f0e731dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a5d868 - Browse repository at this point
Copy the full SHA 6a5d868View 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 a212c71 - Browse repository at this point
Copy the full SHA a212c71View commit details -
Configuration menu - View commit details
-
Copy full SHA for dbe7daa - Browse repository at this point
Copy the full SHA dbe7daaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 02d0bf0 - Browse repository at this point
Copy the full SHA 02d0bf0View commit details -
server_env: fix inverse method (closes #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 6b665db - Browse repository at this point
Copy the full SHA 6b665dbView 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 d6c0f7b - Browse repository at this point
Copy the full SHA d6c0f7bView 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 ff10872 - Browse repository at this point
Copy the full SHA ff10872View 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 6101537 - Browse repository at this point
Copy the full SHA 6101537View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae03baa - Browse repository at this point
Copy the full SHA ae03baaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b3eff4 - Browse repository at this point
Copy the full SHA 2b3eff4View 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 8047946 - Browse repository at this point
Copy the full SHA 8047946View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0b947a - Browse repository at this point
Copy the full SHA c0b947aView commit details -
Configuration menu - View commit details
-
Copy full SHA for af8f29c - Browse repository at this point
Copy the full SHA af8f29cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e59f1b4 - Browse repository at this point
Copy the full SHA e59f1b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2e83ec - Browse repository at this point
Copy the full SHA c2e83ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe8a26a - Browse repository at this point
Copy the full SHA fe8a26aView 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 686eed0 - Browse repository at this point
Copy the full SHA 686eed0View 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 c58e1c1 - Browse repository at this point
Copy the full SHA c58e1c1View 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 104304f - Browse repository at this point
Copy the full SHA 104304fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31219b7 - Browse repository at this point
Copy the full SHA 31219b7View 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 fd5843a - Browse repository at this point
Copy the full SHA fd5843aView 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 9274bd2 - Browse repository at this point
Copy the full SHA 9274bd2View 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 4cfc51d - Browse repository at this point
Copy the full SHA 4cfc51dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 83acbcc - Browse repository at this point
Copy the full SHA 83acbccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 722df5c - Browse repository at this point
Copy the full SHA 722df5cView 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 84a7fb8 - Browse repository at this point
Copy the full SHA 84a7fb8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80e4846 - Browse repository at this point
Copy the full SHA 80e4846View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b13d43 - Browse repository at this point
Copy the full SHA 4b13d43View commit details -
Configuration menu - View commit details
-
Copy full SHA for c8c84ee - Browse repository at this point
Copy the full SHA c8c84eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2e2cc9 - Browse repository at this point
Copy the full SHA b2e2cc9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6260e87 - Browse repository at this point
Copy the full SHA 6260e87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 88522fd - Browse repository at this point
Copy the full SHA 88522fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for c3b2f7a - Browse repository at this point
Copy the full SHA c3b2f7aView commit details