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

[17.0][MIG] users_ldap_populate: Migration to 17.0 #675

Open
wants to merge 49 commits into
base: 17.0
Choose a base branch
from

Commits on Nov 27, 2024

  1. Configuration menu
    Copy the full SHA
    ffe4368 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9dc1a0f View commit details
    Browse the repository at this point in the history
  3. Generate .pot files

    Sandy Carter authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    91725fe View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c6c6b41 View commit details
    Browse the repository at this point in the history
  5. Move users_ldap_populate out of unported

    dreispt authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    7c28848 View commit details
    Browse the repository at this point in the history
  6. Port users_ldap_populate to v8

    dreispt authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    05a8578 View commit details
    Browse the repository at this point in the history
  7. [FIX] pylint

    Jonathan Nemry authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    c4762c7 View commit details
    Browse the repository at this point in the history
  8. [FIX] travis

    hbrunn authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    65cb66e View commit details
    Browse the repository at this point in the history
  9. Add license key in __openerp__.py

    yvaucher authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    c5155db View commit details
    Browse the repository at this point in the history
  10. 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.
    gurneyalex authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    2a164a5 View commit details
    Browse the repository at this point in the history
  11. Add missing default oca icons

    yvaucher authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    1ed25dd View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    6440e56 View commit details
    Browse the repository at this point in the history
  13. [UPD] prefix versions with 8.0

    sbidoul authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    948cee2 View commit details
    Browse the repository at this point in the history
  14. [MIG] Make modules uninstallable

    pedrobaeza authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    4c83481 View commit details
    Browse the repository at this point in the history
  15. Port the ldap_populate in V9

    flotho authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    702b252 View commit details
    Browse the repository at this point in the history
  16. port user_ldap_populate to new API

    and remove use of deprecated except_orm on the way
    gurneyalex authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    c78a8e4 View commit details
    Browse the repository at this point in the history
  17. Fix 9.0 version number

    sbidoul authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    ec98096 View commit details
    Browse the repository at this point in the history
  18. Reset version 9.0.1.0.0

    sbidoul authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    6a682d7 View commit details
    Browse the repository at this point in the history
  19. 9.0 users_ldap_populate fix 2 bugs

    * leftovers from old api
    * python-ldap does not like Unicode strings
    gurneyalex authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    b6d40c0 View commit details
    Browse the repository at this point in the history
  20. updated i18n files

    gurneyalex authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    7839253 View commit details
    Browse the repository at this point in the history
  21. update french translation

    gurneyalex authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    884a25b View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    dc9064b View commit details
    Browse the repository at this point in the history
  23. [MIG] Make modules uninstallable

    pedrobaeza authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    454b53d View commit details
    Browse the repository at this point in the history
  24. [MIG] Rename manifest files

    pedrobaeza authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    bd4b564 View commit details
    Browse the repository at this point in the history
  25. 10.0 migrate users_ldap_populate (OCA#657)

    * [MIG] migrate users_ldap_populate to 10.0
    
    Changes include:
     - move views to views folder
     - move models to models folder
     - in views rename openerp to odoo
     - __openerp__.py to __manifest__.py
    
    * [FIX] Add read me to module users_ldap_populate
    
    * [FIX] users_ldap_populate: cleanup manifest file
    
    Cleanup of the author list
    
    * [FIX] users_ldap_populate: More modern copyright in .py files
    
    * [FIX] users_ldap_populate: Update read me
    
    Fixes include:
     - more human module name
     - Fix web links
    StephanRozendaal authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    f9d2e03 View commit details
    Browse the repository at this point in the history
  26. [ADD] users_ldap_populate: migrate functionality added to 6.1 after 7…

    ….0 port (OCA#408)
    
    * [ADD] possibility to deactivate users not found in ldap while populating
    
    * [IMP] search in ldap for every possibly unknown user to be really sure it
    actually is not present there
    
    * [FIX] refactoring mistake
    
    * [IMP] don't use self.query() to be sure to be stopped if any error occurs
    
    * [IMP] remove superfluous check as exceptions are not supressed any more
    
    * [FIX] typo in variable name
    [FIX] handle unicode characters in search filter
    [FIX] search for user's login, not her name
    
    * [FIX] don't pass user_name as assertion_value
    
    * [FIX] don't deactivate users if we got a non-existent ldap configuration
    
    * [FIX] flake8
    
    * [FIX] more flake8
    
    * [FIX] make form usable
    
    * [FIX] name clash between function and field
    
    * [ADD] test
    hbrunn authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    7afa7ea View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    be214b4 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    24713ba View commit details
    Browse the repository at this point in the history
  29. [FIX] users_ldap_populate. Wrong field name in test.

    Also various changes to satisfy pylint/flake/travis.
    NL66278 authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    836a88d View commit details
    Browse the repository at this point in the history
  30. remove obsolete .pot files [ci skip]

    sbidoul authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    e5158c8 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    77de591 View commit details
    Browse the repository at this point in the history
  32. [FIX] strange behavior of users_ldap_populate

    when the LDAP search returns values for a user existing in Odoo but
    deactivated, the 'deactivate unknown users' feature was silently disabled.
    
    This commit changes the behavior to reactivate the user in Odoo
    gurneyalex authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    70b6d65 View commit details
    Browse the repository at this point in the history
  33. [FIX] auth_ldap_populate

    would not always archive users, esp. when run from a cron
    
    on the way:
    
    * add some logs to help check what's going on
    * use sets to remove duplicates
    * don't query all ldap configurations if one has said the user must be archived
    gurneyalex authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    8248446 View commit details
    Browse the repository at this point in the history
  34. Translated using Weblate (French)

    Currently translated at 100.0% (21 of 21 strings)
    
    Translation: server-tools-10.0/server-tools-10.0-users_ldap_populate
    Translate-URL: https://translation.odoo-community.org/projects/server-tools-10-0/server-tools-10-0-users_ldap_populate/fr/
    gurneyalex authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    9018d66 View commit details
    Browse the repository at this point in the history
  35. [10.0] [FIX] users_ldap_populate special characters (#1564)

    * [10.0] users_ldap_populate special characters
    r-hede authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    fb93f22 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    3e7790e View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    50d479c View commit details
    Browse the repository at this point in the history
  38. [FIX] users_ldap_populate: use str, not bytes

    Without this fix, when hitting the populate button, Odoo failed with:
    
    ```
     Odoo Server Error
    
    Traceback (most recent call last):
      File "/opt/odoo/custom/src/odoo/odoo/http.py", line 656, in _handle_exception
        return super(JsonRequest, self)._handle_exception(exception)
      File "/opt/odoo/custom/src/odoo/odoo/http.py", line 314, in _handle_exception
        raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
      File "/opt/odoo/custom/src/odoo/odoo/tools/pycompat.py", line 87, in reraise
        raise value
      File "/opt/odoo/custom/src/odoo/odoo/http.py", line 698, in dispatch
        result = self._call_function(**self.params)
      File "/opt/odoo/custom/src/odoo/odoo/http.py", line 346, in _call_function
        return checked_call(self.db, *args, **kwargs)
      File "/opt/odoo/custom/src/odoo/odoo/service/model.py", line 97, in wrapper
        return f(dbname, *args, **kwargs)
      File "/opt/odoo/custom/src/odoo/odoo/http.py", line 339, in checked_call
        result = self.endpoint(*a, **kw)
      File "/opt/odoo/custom/src/odoo/odoo/http.py", line 941, in __call__
        return self.method(*args, **kw)
      File "/opt/odoo/custom/src/odoo/odoo/http.py", line 519, in response_wrap
        response = f(*args, **kw)
      File "/opt/odoo/auto/addons/web/controllers/main.py", line 966, in call_button
        action = self._call_kw(model, method, args, {})
      File "/opt/odoo/auto/addons/web/controllers/main.py", line 954, in _call_kw
        return call_kw(request.env[model], method, args, kwargs)
      File "/opt/odoo/custom/src/odoo/odoo/api.py", line 759, in call_kw
        return _call_kw_multi(method, model, args, kwargs)
      File "/opt/odoo/custom/src/odoo/odoo/api.py", line 746, in _call_kw_multi
        result = method(recs, *args, **kwargs)
      File "/opt/odoo/auto/addons/users_ldap_populate/models/users_ldap.py", line 189, in populate_wizard
        res_id = wizard_obj.create({'ldap_id': self.id}).id
      File "<decorator-gen-155>", line 2, in create
      File "/opt/odoo/custom/src/odoo/odoo/api.py", line 461, in _model_create_multi
        return create(self, [arg])
      File "/opt/odoo/auto/addons/users_ldap_populate/models/populate_wizard.py", line 32, in create
        ldap.action_populate()
      File "/opt/odoo/auto/addons/users_ldap_populate/models/users_ldap.py", line 65, in action_populate
        results = self._get_ldap_entry_dicts(conf)
      File "/opt/odoo/auto/addons/users_ldap_populate/models/users_ldap.py", line 128, in _get_ldap_entry_dicts
        ldap_password.encode('utf-8')
      File "/usr/local/lib/python3.7/site-packages/ldap/ldapobject.py", line 382, in simple_bind_s
        msgid = self.simple_bind(who,cred,serverctrls,clientctrls)
      File "/usr/local/lib/python3.7/site-packages/ldap/ldapobject.py", line 376, in simple_bind
        return self._ldap_call(self._l.simple_bind,who,cred,RequestControlTuples(serverctrls),RequestControlTuples(clientctrls))
      File "/usr/local/lib/python3.7/site-packages/ldap/ldapobject.py", line 263, in _ldap_call
        result = func(*args,**kwargs)
    TypeError: argument 1 must be str, not bytes
    ```
    Jairo Llopis authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    7b8a363 View commit details
    Browse the repository at this point in the history
  39. [FIX] users_ldap_populate: Fix POT + es

    Don't know why the POT hasn't been regenerated.
    pedrobaeza authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    913b0e3 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    96f49f2 View commit details
    Browse the repository at this point in the history
  41. [MIG] users_ldap_populate: Migration to 13.0

    TT28154
    joao-p-marques authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    bf564d0 View commit details
    Browse the repository at this point in the history
  42. Apply dotfiles

    sbidoul authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    3bb7c70 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    2ab73b6 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    b2938df View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    cba59df View commit details
    Browse the repository at this point in the history
  46. Translated using Weblate (Italian)

    Currently translated at 100.0% (22 of 22 strings)
    
    Translation: server-auth-16.0/server-auth-16.0-users_ldap_populate
    Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-users_ldap_populate/it/
    mymage authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    366e895 View commit details
    Browse the repository at this point in the history
  47. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 100.0% (22 of 22 strings)
    
    Translation: server-auth-16.0/server-auth-16.0-users_ldap_populate
    Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-users_ldap_populate/pt_BR/
    Rodrigo Macedo authored and ryanc-me committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    1ea3f06 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    8f23700 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    023ac25 View commit details
    Browse the repository at this point in the history