Skip to content
Snippets Groups Projects
  1. Jul 21, 2022
  2. May 23, 2022
  3. Mar 30, 2022
  4. Mar 29, 2022
    • Olivier Dony's avatar
      [FIX] reqs: bump deps for deployments without security backports · 4c98b836
      Olivier Dony authored
      
      Update the default requirements according to latest security risks in
      relevant dependencies. The baseline required version is kept in
      comments, and it perfectly safe to use when security backports are
      present. In other words, using the official Debian/Ubuntu packages
      on a supported LTS version of these operating systems, with
      unattended upgrades turned on, is a simpler safe option.
      
      closes odoo/odoo#87397
      
      X-original-commit: b488bd8f88a56af553c090351ff6b2ecdfb411dc
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      Signed-off-by: default avatarOlivier Dony <odo@odoo.com>
      4c98b836
  5. Jan 12, 2022
    • Thibault Delavallée's avatar
      [REF] various: remove usage and dependency on html2text library · 37db926f
      Thibault Delavallée authored
      
      We have our own html2plaintext, already used in lot of use cases instead of
      just a few for the html2txt library.
      
      Notably for emails: most emails going through Odoo stack use our simple
      html2plaintext to format the body alternative. When no body alternative
      is given to ``build_email`` an alternative is built using the library to
      remove. Using our own parser allows to have the same results compared to
      using ``MailMail.send()``. Difference lies in spaces and new lines as well
      as markdown. Our html2plaintext is a bit simple and does not try to generate
      Markdown but generates a simple plaintext version.
      
      This also helps solving some issues with depending on that library.
      
      Task-2702034
      
      closes odoo/odoo#82486
      
      X-original-commit: b3b9627b
      Related: odoo/enterprise#23364
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      37db926f
  6. Dec 01, 2021
  7. Oct 21, 2021
    • Christophe Monniez's avatar
      [FIX] packaging: remove mako · 01949f94
      Christophe Monniez authored
      
      Mako is not used anymore for a long time.
      
      closes odoo/odoo#78781
      
      X-original-commit: fb9f89af
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      01949f94
    • Christophe Monniez's avatar
      [IMP] packaging: sort requirements · f446e2fa
      Christophe Monniez authored
      X-original-commit: 32f3e358
      Part-of: odoo/odoo#78781
      f446e2fa
    • Christophe Monniez's avatar
      [IMP] requirements: adapt to latest focal versions · 38deea67
      Christophe Monniez authored
      With the release of Debian Bullseye the time has come for the balancing
      act by trying to update the requirements.
      
      The constraints are the following:
          * Stick as close as possible to python3-* Debian packages versions
            of the current Debian stable.
          * Same but for the Ubuntu LTS version.
          * When one of the above package is patched by Debian or Ubuntu
            maintainers, set the upstream version that includes the patch if any.
      
      Also, as support for python < 3.7 is dropped, some cleanup can be done.
      
      The `reportlab / pillow` combo is a special case:
          * Pillow has to be updated to 8.1.2 as this version includes the
            security patches that were added to Ubuntu package 7.0.0 (Focal).
          * Reportlab crashes with 8.1.2 with version prior to 3.5.54 [0].
            The problem does not occur on Ubuntu Focal as both versions from
            the Ubuntu packaging are compatible.
      
      So the reportlab 3.5.59 is chosen as it's the Debian Bullseye version
      and to avoid multiple lines for a few minor versions.
      
      [0] https://hg.reportlab.com/hg-public/reportlab/rev/0cf382dab63b
      
      X-original-commit: 794677fb
      Part-of: odoo/odoo#78781
      38deea67
  8. Sep 15, 2021
  9. Aug 13, 2021
    • std-odoo's avatar
      [IMP] base: SMTP authentication with SSL certificates · a4d51303
      std-odoo authored
      PURPOSE
      =======
      We want to be able to authenticate our servers with a certificate
      for the entire domain name instead of using a username and a password.
      
      SPECIFICATIONS
      ==============
      Add 2 fields on the `ir.mail_server`, which are
      - the SSL certificate
      - the SSL private key
      
      When we uploaded both files, we use them to authenticate the client of
      the SSL connection.
      
      Add 2 options on the Odoo binary, so we can provide the filenames of both
      files (like we do for the SMTP username/password).
      
      SETTINGS
      ========
      Note that this type of authentication doesn't work locally for Microsoft
      office 365. It seems like Microsoft is blocking non-static IP address
      (not able to ping the host locally, but it works on the server).
      
      The host name of the server is defined in the MX DNS record. Then, on
      Office 365 you must create an SMTP relay based on a certificate and not
      based on a hard coded IP address. The certificate must be valid for your
      domain name.
      
      e.g.
          Host: openerp-org.mail.protection.outlook.com
          Port: 25
          Username: <keep it blank>
          Password: <keep it blank>
          Security: STARTTLS
          Email: admin@odoobe.com
      
      New Python dependence
      =====================
      The standard SSL python library only takes a filename to the certificate
      / private key.
      
      But, we do not want to use attachments and take the full path to the
      file (in the filestore) or to create temporary file.
      
      So, we need to use a new library "PyOpenSSL" which allows you to load
      a certificate / private key from a byte array.
      
      To make this library work with SMTPLIB we use a wrapper developed
      in urllib3 (PyOpenSSLContext).
      
      LINKS
      =====
      
      Task-2367946
      odoo/odoo#61853
      odoo/upgrade#1903
      a4d51303
  10. Mar 19, 2021
  11. Jan 29, 2021
    • Christophe Monniez's avatar
      [FIX] packaging: update rpm packaging for fedora 32 · 2d4c3834
      Christophe Monniez authored
      
      As Fedora 32 was the current release when Odoo 14.0 was released, this
      should be the supported version.
      
      Also, a few  old libs were still in mentioned in the packaging files.
      They flew under the radar because they never broke the packaging.
      This is not the case anymore, those libs disappeared from the Fedora
      repos.
      
      It seems that pyparsing is not used anymore since 5a1c06a1 and thus can
      be safely removed from `requirements.txt` too.
      
      pychart is not used anymore since 3425752e.
      
      While at it, remove mix of tabs and spaces in package.dffedora, also add
      missing packages to avoid installation at test time.
      
      Now that I started down the slippery slope, also removed some `-dev`
      packages in package.dfsrc as wheel's are available.
      
      Finally, the rpm install script now detects the python ABI version in
      order to avoid update this file at each ABI change in Fedora.
      
      Fixes #63719
      
      closes odoo/odoo#65288
      
      X-original-commit: a8deb1dd
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      2d4c3834
  12. Jan 28, 2021
  13. Nov 27, 2020
    • Xavier Morel's avatar
      [IMP] requirements: resolve compatibility issues for 3.8 and 3.9 · 43dd8785
      Xavier Morel authored
      
      Only updates outdated requirements which actively cause issues:
      
      * freezegun broken in 3.8 (removal of time.clock)
      * xlrd broken in 3.8 (removal of time.clock)
      * also monkeypatches xlrd.xlsx for 3.9 (removal of
        Element.getiterator, breaks because of defusedxml)
      * jinja triggers DeprecationWarning in 3.8
      * pillow triggers warning in 3.9
      * lxml, greenlet don't compile in 3.9
      * reportlab doesn't work in 3.9
      
      New versions try to match those of Debian Bullseye.
      
      Also adds a script to more easily compare dependency versions between
      the requirements files and what's in various distributions (currently
      supports checking against debian and ubuntu).
      
      Furthermore updates warnings filtering:
      
      * removes xlrd (mischeck was monkeypatched as noted above)
      * removes setuptools (was for older versions, one would hope this
        isn't an issue anymore)
      * adds babel: python-babel/babel#684 fixes the deprecation warning but
        is not part of any release yet
      * ignores error related to `random.sample` on a set, this is a
        diagnostics bug because recordsets implement both Sequence and Set,
        and the stdlib checks for Set first (bpo-42470)
      
      See #59980
      Closes #61103
      
      closes odoo/odoo#62510
      
      X-original-commit: 648635de
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      43dd8785
    • Christophe Monniez's avatar
      [FIX] requirements: remove gevent double requirements on win32 · 4b8504a8
      Christophe Monniez authored
      
      Fixes #62214
      
      closes odoo/odoo#62477
      
      X-original-commit: 45afa3a2
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      4b8504a8
  14. Sep 08, 2020
  15. Sep 07, 2020
  16. Jul 10, 2020
  17. May 05, 2020
  18. Apr 22, 2020
  19. Apr 01, 2020
    • Adrian Torres's avatar
      [REM] *: remove various unused import shims · 5952928b
      Adrian Torres authored
      
      Before this commit, a lot of leftover import shims existed in the
      codebase for py2-py3 compatibility, these are no longer needed since
      Odoo 13.0+ doesn't support Python 2 anymore and is (finally) in EOL.
      
      With this commit, these shims are dropped, making the code cleaner,
      easier to read and with one less dependency.
      
      Queue -> queue -> py2-py3 compatibility
      xmlrpclib -> xmlrpc.client -> py2-py3 compatibility
      ConfigParser -> configparser -> py2-py3 compatibility
      itertools.izip_longest -> itertools.zip_longest -> py2-py3 compatibility
      urllib -> urllib.request -> py2-py3 compatibility
      __builtins__ -> builtins -> py2-py3 compatibility
      _winreg -> winreg -> py2-py3 compatibility
      
      mock -> unittest.mock -> merged into CPython
      
      The debian/fedora packages and requirements.txt have been updated accordingly
      
      closes odoo/odoo#44601
      
      Related: odoo/enterprise#8141
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      5952928b
  20. Mar 13, 2020
  21. Feb 05, 2020
  22. Jan 31, 2020
  23. Jan 29, 2020
  24. Jan 28, 2020
    • Martin Trigaux's avatar
      [FIX] package: requirements for python 3.8 · 2716e738
      Martin Trigaux authored
      
      psycopg2 2.7 not be installed on python 3.8, needs at least psycopg2 2.8
      use the same version as windows to avoid complicated rules if windows
      AND python 3.8
      Note that psycopg2 3.8.4 is currently the only one released after the
      release of python 3.8 but reported compatibilty issued seems to be
      fixed since 3.8 at psycopg/psycopg2#854
      
      Fixes odoo/odoo#42660
      
      closes odoo/odoo#44143
      
      X-original-commit: f6158264
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      2716e738
  25. Jan 22, 2020
    • Martin Trigaux's avatar
      [FIX] auth_ldap: replace the deprecated library by one up to date · 9aef423d
      Martin Trigaux authored
      At 795c7b0a the external dependencies was changed from trying
      to import 'ldap' to checking than 'pyldap' package was installed.
      The problem is that pyldap is a unmaintained library that should no
      longer be used, as explained on the package page:
      https://pypi.org/project/pyldap/
      
      
      "The pyldap fork was merged back into python-ldap, and released as
       python-ldap 3.0.0."
      
      Having pyldap version >= 3.0 installs python-ldap automatically and
      will not cause any issue.
      
      The Debian control file package name is adapted to use the latest.
      
      The "ldap" externalm dependency defined in __manifest__.py will cause
      pkg_resources.get_distribution() to fail in both case ("python-lap" or
      "pyldap"), but the "import" fallback will succeed. For that reason, the
      log warning is turned into a log info.
      
      closes odoo/odoo#43769
      
      Note: This library should be replaced by the pure python "ldap3" library.
      X-original-commit: 1afd0ccf
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      9aef423d
  26. Jan 10, 2020
    • Christophe Monniez's avatar
      [FIX] requirements: update library versions to match Debian Buster · 29f02a37
      Christophe Monniez authored
      
      Some library versions are outdated since the release of Debian Buster.
      
      With this commit the required libraries versions will match as close as
      possible the versions available in the current Debian stable release
      (Buster).
      
      Also, the requirements were tested against a Windows Python 3.7 to
      ensure that a "pip install -r" can be used without the need of a CPP
      compiler.
      
      As Babel format_time now returns 'HNE' (Heure Normale de l'EST) for Fr
      locale instead of the zone offset, the test is adapted.
      
      Finally the babel.dates is explicitely imported, otherwise the proper
      import of this submodule is relying on a side effect.
      
      closes odoo/odoo#43106
      
      X-original-commit: 32e455bf
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      29f02a37
  27. Nov 14, 2019
  28. Oct 11, 2019
  29. Oct 09, 2019
  30. Sep 09, 2019
  31. Jun 05, 2019
  32. Apr 10, 2019
    • Olivier Dony's avatar
      [FIX] requirements: bump up jinja2 reqs · 78ba90d5
      Olivier Dony authored
      
      Recommended by GitHub's repository alerts.
      
      We normally stick as close as possible to the version we depend
      on in the official DEB packages. This in turn depends on the version of
      Debian stable at the time of release - for 10.0 that would be Debian 8
      (jessie) and thus Jinja 2.7.3 (albeit with security backports).
      
      However Jinja2 before 2.10.1 suffers from a few issues that could lead
      to crashes of Odoo processes.
      
      It seems it's worth an exception to our rule for pip users, similarly to
      previous bump up at d2605bcc.
      
      closes odoo/odoo#32602
      
      Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
      78ba90d5
    • Olivier Dony's avatar
      [FIX] requirements: bump up jinja2 reqs · 6cbecced
      Olivier Dony authored
      
      Recommended by GitHub's repository alerts.
      
      We normally stick as close as possible to the version we depend
      on in the official DEB packages. This in turn depends on the version of
      Debian stable at the time of release - for 11.0 that would be Debian 9
      (stretch) and thus Jinja 2.8 (with security backports).
      
      However Jinja2 before 2.10.1 suffers from a few issues that could lead
      to crashes of Odoo processes.
      
      It seems it's worth an exception to our rule for pip users, similarly to
      previous bump up at d2605bcc.
      
      closes odoo/odoo#32601
      
      Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
      6cbecced
  33. May 13, 2019
  34. May 07, 2019
    • Olivier Dony's avatar
      [FIX] requirements: bump up jinja2 reqs · e554ce34
      Olivier Dony authored
      
      Recommended by GitHub's repository alerts.
      
      We normally stick as close as possible to the version we depend
      on in the official DEB packages. This in turn depends on the version of
      Debian stable at the time of release - for 11.0 that would be Debian 9
      (stretch) and thus Jinja 2.8 (with security backports).
      
      However Jinja2 before 2.10.1 suffers from a few issues that could lead
      to crashes of Odoo processes.
      
      It seems it's worth an exception to our rule for pip users, similarly to
      previous bump up at d2605bcc.
      
      closes odoo/odoo#32601
      
      Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
      e554ce34
  35. Feb 05, 2019
  36. Nov 13, 2018
Loading