-
-
Notifications
You must be signed in to change notification settings - Fork 470
[18.0][MIG] auth_ldaps: Migration to 18.0 #833
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
base: 18.0
Are you sure you want to change the base?
Conversation
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/
There was a problem hiding this 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" |
There was a problem hiding this comment.
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.
No description provided.