Skip to content

Commit

Permalink
[16.0][FIX] users_ldap_groups: move import to top
Browse files Browse the repository at this point in the history
  • Loading branch information
oh2fih committed Jun 4, 2024
1 parent 4048be3 commit 4bd1f8c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions users_ldap_groups/models/res_company_ldap_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from logging import getLogger
from string import Template
import base64

from odoo import api, models

Expand Down Expand Up @@ -44,8 +45,6 @@ def _query(self, ldap_entry, mapping):
return bool(results)

def safe_ldap_decode(self, attr):
import base64

try:
return attr.decode()
except UnicodeDecodeError:
Expand Down

0 comments on commit 4bd1f8c

Please sign in to comment.