Skip to content
Snippets Groups Projects
  1. Apr 28, 2023
    • Moises Lopez's avatar
      [FIX] requirements.txt: unpin pytz · b5cf0a50
      Moises Lopez authored
      
      On Debian based systems, the `tzdata` package is maintained to reflect changes
      in timezones and there is no need to upgrade the `python3-tz` package.
      On the other hand, for those who are using `pip` and thus our `requirements.txt`,
      the package needs to be up to date. By unpinning it in the requirements.txt:
      
      - new installations based on pip will be up to date
      - older installations based on pip can easily upgrade
      - debian based installations have to maintain the tzdata package
      - mixed installs like on runbot will rely on Debian tzdata
      
      closes odoo/odoo#117527
      
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      b5cf0a50
  2. Nov 09, 2022
    • Christophe Monniez's avatar
      [FIX] requirements: adapt for ubuntu Jammy · 4029a01c
      Christophe Monniez authored
      lxml 4.6.1 has issues with python 3.10. So we can safely mimic 15.0 as
      it's Focal based too.
      
      Error encountered while importing etree from lxml:
      etree.cpython-310-x86_64-linux-gnu.so: undefined symbol: _PyGen_Send
      
      Part-of: odoo/odoo#98081
      4029a01c
  3. Jan 06, 2022
    • Thibault Delavallée's avatar
      [REF] various: remove usage and dependency on html2text library · d79197f1
      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#82330
      
      X-original-commit: odoo/odoo@9b5f86e8fa5bef341ea7392b86987092d6f6933a
      Related: odoo/enterprise#23292
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      d79197f1
  4. Sep 15, 2021
  5. Mar 19, 2021
  6. Jan 29, 2021
    • Christophe Monniez's avatar
      [FIX] packaging: update rpm packaging for fedora 32 · a8deb1dd
      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#65224
      
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      a8deb1dd
  7. Jan 25, 2021
  8. Nov 27, 2020
    • Xavier Morel's avatar
      [IMP] requirements: resolve compatibility issues for 3.8 and 3.9 · 648635de
      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#62380
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      648635de
    • Christophe Monniez's avatar
      [FIX] requirements: remove gevent double requirements on win32 · 4ce94234
      Christophe Monniez authored
      
      Fixes #62214
      
      closes odoo/odoo#62475
      
      X-original-commit: 45afa3a2
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      4ce94234
  9. Sep 08, 2020
  10. Sep 07, 2020
  11. Jul 10, 2020
  12. May 05, 2020
  13. Apr 22, 2020
  14. 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
  15. Mar 13, 2020
  16. Feb 05, 2020
  17. Jan 31, 2020
  18. Jan 29, 2020
  19. 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
  20. 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
  21. 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
  22. Nov 14, 2019
  23. Oct 11, 2019
  24. Oct 09, 2019
  25. Sep 09, 2019
  26. Jun 05, 2019
  27. 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
  28. May 13, 2019
  29. 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
  30. Feb 05, 2019
  31. Nov 13, 2018
  32. Oct 30, 2018
  33. Oct 09, 2018
    • Adrian Torres's avatar
      [REM] packaging: drop PyYAML dependency · a277bfb4
      Adrian Torres authored
      Commit cf853a78 removed all yml tests
      and the yml import engine from Odoo forever, however PyYAML remains a
      dependency even though it's not used anymore.
      
      This commit removes any reference to this lib that could be found.
      
      closes odoo/odoo#27563
      a277bfb4
  34. Aug 27, 2018
  35. Aug 14, 2018
    • Olivier Dony's avatar
      [FIX] requirements: bump up pillow,jinja2 reqs · d2605bcc
      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 9.0 that would be Debian 8
      (jessie) and thus Pillow 2.6.1.
      
      However Pillow versions before 3.3.2 and Jinja2 before 2.8.1 suffer
      from a few issues that could lead to crashes of Odoo workers.
      The bugfixes have been backported in the DEB packages for Pillow,
      so users of Debian/Ubuntu LTS versions won't be affected if they are
      keeping their systems updated.
      
      However it's worth an exception to our rule for pip users.
      Unverified
      d2605bcc
  36. Jul 18, 2018
  37. Jul 17, 2018
    • Jigar Patel's avatar
      [IMP] import/export UIs · b60de0db
      Jigar Patel authored
      Task 40692
      
      Various changes to import/export (mainly) UIs:
      
      * default to excel & "full" (non-import-compatible) export
      * auto-detect encoding of CSV using chardet
      * remember column -> field mapping after having imported a file (useful
         for repeated imports where auto-matching failed)
      * better handle localised booleans & column names
      * automatically select source list view's fields when exporting
      * better integrate import templates feature and add a number of templates
      b60de0db
  38. Apr 18, 2018
Loading