Skip to content
Snippets Groups Projects
  1. Jan 06, 2022
    • Thibault Delavallée's avatar
      [REF] various: remove usage and dependency on html2text library · 9b5f86e8
      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#80576
      
      Related: odoo/enterprise#22603
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      9b5f86e8
  2. Sep 10, 2021
  3. Nov 26, 2020
  4. Sep 08, 2020
  5. Sep 07, 2020
  6. Jun 23, 2020
  7. Mar 13, 2020
  8. Jan 28, 2020
    • Martin Trigaux's avatar
      [FIX] package: requirements for python 3.8 · f6158264
      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#42705
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      f6158264
  9. Jan 22, 2020
    • Martin Trigaux's avatar
      [FIX] auth_ldap: replace the deprecated library by one up to date · 1afd0ccf
      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#40249
      
      Note: This library should be replaced by the pure python "ldap3" library.
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      1afd0ccf
  10. Nov 29, 2019
    • Christophe Monniez's avatar
      [FIX] requirements: update library versions to match Debian Buster · 32e455bf
      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#40361
      
      Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
      32e455bf
  11. Nov 14, 2019
  12. Oct 11, 2019
  13. Oct 08, 2019
  14. Sep 09, 2019
  15. Jun 05, 2019
  16. 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
  17. May 13, 2019
  18. 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
  19. Feb 05, 2019
  20. Nov 13, 2018
  21. Oct 30, 2018
  22. 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
  23. Aug 27, 2018
  24. 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
  25. Jul 18, 2018
  26. 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
  27. Apr 18, 2018
  28. Feb 14, 2018
    • Olivier Dony's avatar
      [FIX] reqs.txt: bump up recommended Pillow version · 16050869
      Olivier Dony authored
      We should 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.1.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 keeing their systems updated.
      
      However it's worth an exception to our rule for pip users.
      
      FWD-PORTS: skip
      Unverified
      16050869
  29. Jan 16, 2018
    • Vincent Schippefilt's avatar
      [FIX] requirements: update for windows compatibility · 3ede4c72
      Vincent Schippefilt authored
      problem: installing from the source on windows includes manual modification of the requiremnets, as well as
      not supported package versions
      
      solution:
      - increased the version of lxml, werkzeug and pillow to the latest supported version in debian, it
      will fix already a number of issues on windows
      - automatically include or exclude dependencies from requirement.txt using requirement specifiers
      
      Note that for lxml on windows, we will always install the latest version because the version 3.7.1 does not exist on
      windows in WHL.
      3ede4c72
  30. Nov 17, 2017
  31. Nov 13, 2017
  32. Oct 16, 2017
  33. Oct 12, 2017
  34. Oct 09, 2017
  35. Sep 14, 2017
    • Xavier Morel's avatar
      [FIX] P3: metadata update · 4a878fa4
      Xavier Morel authored
      * gitignore pycache folders (apparently appear for some)
      * update xlwt requirement: 1.1.2 does not work with Python 3.6, 1.2 should work, 1.3 officially supports it
      4a878fa4
  36. Aug 20, 2017
    • Olivier Dony's avatar
      [FIX] P3: more requirements.txt changes · 589c0d7e
      Olivier Dony authored
      - jcconv is not P3-ready and is only optional, for use on the POSBox
        firmware for Japanese charset support in some receipt printers
        (The POSBox firmware is still based on Odoo 8 + PY2 at this time)
      
      - wsgiref is built-in since Python 2.5, and the one on pypi does not work
        on Python 3.2+
      Unverified
      589c0d7e
  37. Jun 16, 2017
  38. May 30, 2017
  39. May 15, 2017
    • Xavier Morel's avatar
      [REM] P3: outdated html2text vendoring · 67c17cb3
      Xavier Morel authored
      The vendored html2text is *really* old and absolutely not
      P3-compatible.
      
      There is a maintained version on Pypy which is, so use that and stop
      vendoring html2text.
      67c17cb3
Loading