Skip to content
Snippets Groups Projects
  1. May 23, 2022
    • Christophe Monniez's avatar
      [FIX] requirements: adapt for ubuntu Jammy · 22448d76
      Christophe Monniez authored
      Part-of: odoo/odoo#91927
      22448d76
    • Christophe Monniez's avatar
      [FIX] various: replace deprecated currentThread method · 65c8814a
      Christophe Monniez authored
      CurrentThread is now really deprecated in Python 3.10 ... Time to
      change.
      
      Part-of: odoo/odoo#91927
      65c8814a
    • Olivier Dony's avatar
      [FIX] _vendor: fix compatibility with werkzeug 2.0+ · 959059fb
      Olivier Dony authored
      As of werkzeug 2.0, the `posixemulation` compatibility layer for atomic
      rename operations is abandoned[1]. In the mean time an atomic,
      cross-platform file renaming function was introduced in the stdlib, as of
      Python 3.3: `os.replace()`.
      
      By using `os.replace()` instead of `posixemulation.rename()`, we can
      ensure compatibility with versions 0.x, 1.x and 2.x of werkzeug.
      
      We've always required Python 3.5+ since the P3 support, so
      `os.replace()` is always available.
      
      This is a follow-up of the work for supporting werkzeug 1.x [2]
      
      References:
      [1] https://github.com/pallets/werkzeug/pull/1790
      [2] vendoring of werkzeug.sessions: odoo/odoo#45931
      
      Part-of: odoo/odoo#91927
      959059fb
    • Xavier Morel's avatar
      [FIX] auth_oauth: restore fetching uid from user_id · 2041f55c
      Xavier Morel authored
      
      In discussing 56fe16bd I was reminded to re-set the `user_id` from
      `sub` in case an override / other client would be using it, but we
      didn't think that an override might also be *setting* this work key,
      which apparently is the case.
      
      Therefore restore the old behavior of *getting* the user_id from the
      response object, migration to using `sub` (and removal of compat with
      `user_id` and `id`) will be done when the module is reworked and the
      flow compatibility, nonce, etc... are all fixed.
      
      closes odoo/odoo#91996
      
      X-original-commit: a787a2f6
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      2041f55c
  2. May 22, 2022
  3. May 21, 2022
  4. May 20, 2022
Loading