Skip to content
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

Open
wants to merge 86 commits into
base: 18.0
Choose a base branch
from

Conversation

chaule97
Copy link
Owner

@chaule97 chaule97 commented Oct 1, 2024

  • I have to update all of file .po because of po-pretty-format

jgrandguillaume and others added 30 commits October 1, 2024 11:12
(lp:c2c-addons/6.1  rev 11)
(lp:c2c-addons/6.1  rev 28.1.1)
…t is the blessed target.

(lp:c2c-addons/6.1  rev 40.2.1)
(lp:c2c-addons/6.1  rev 45.1.4)
…TK client, because for 6.1 the web client is the blessed target.

(lp:c2c-addons/6.1  rev 116)
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.
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.
* [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
To trigger rebuild following change in setup.py
FrancoMaxime and others added 30 commits October 1, 2024 11:12
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.
``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
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.
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/
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/
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/
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/
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/
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/
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/
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/
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.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.