Skip to content

Conversation

BT-pkosnik
Copy link

No description provided.

etobella and others added 30 commits August 21, 2025 13:41
Currently translated at 100.0% (6 of 6 strings)

Translation: server-auth-14.0/server-auth-14.0-auth_ldaps
Translate-URL: https://translation.odoo-community.org/projects/server-auth-14-0/server-auth-14-0-auth_ldaps/it/
Currently translated at 100.0% (6 of 6 strings)

Translation: server-auth-14.0/server-auth-14.0-auth_ldaps
Translate-URL: https://translation.odoo-community.org/projects/server-auth-14-0/server-auth-14-0-auth_ldaps/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-auth-15.0/server-auth-15.0-auth_ldaps
Translate-URL: https://translation.odoo-community.org/projects/server-auth-15-0/server-auth-15-0-auth_ldaps/
Copy link

@BT-vstoev BT-vstoev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check my comment about the "Test connection" button on the form view. It didn't work for me. I left a comment with my understanding of the issue.



class CompanyLDAP(models.Model):
_inherit = "res.company.ldap"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original model has a method def test_ldap_connection(self): that is used from a button on the form view.
Inside that method the conf is hardcoded and because of that it is missing the new keys that are introduced in this PR "is_ssl" and "skip_cert_validation". Because of that actually with this PR the button is broken (because it calls _connect with the hardcoded conf and if conf["is_ssl"] throws an error).
As a solution I would propose to add context to the button in the form, and if that context is present inside the _connect call (meaning it's a call from the button) - fill the missing conf values from self.

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.