Skip to content
Snippets Groups Projects
  1. Jan 10, 2022
    • Thibault Delavallée's avatar
      [REF] various: remove usage and dependency on html2text library · b3b9627b
      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#82350
      
      X-original-commit: odoo/odoo@9b5f86e8fa5bef341ea7392b86987092d6f6933a
      X-original-commit: odoo/odo#d79197f1
      Related: odoo/enterprise#23302
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      b3b9627b
  2. Oct 21, 2021
    • Christophe Monniez's avatar
      [FIX] packaging: remove mako · fb9f89af
      Christophe Monniez authored
      
      Mako is not used anymore for a long time.
      
      closes odoo/odoo#78131
      
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      fb9f89af
    • Christophe Monniez's avatar
      [IMP] requirements: adapt to latest focal versions · 794677fb
      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
      
      Part-of: odoo/odoo#78131
      794677fb
  3. Oct 08, 2021
    • Christophe Monniez's avatar
      [FIX] packaging: add missing dependencies · 248762c8
      Christophe Monniez authored
      A dependency on python pyopenssl package was added in #61853 and flew
      under the radar. As this package is pure python, it should not cause any
      arm.
      
      Also, it seems that the gsfonts package is needed on Debian to print
      things like barcode badges. Previously, the gsfonts package was a
      dependency of python3-renderm package which is itself a dependency of
      odoo. The gsfonts dependency was removed in the python3-renderpm Bullseye package.
      
      With this commit the gsfonts dependency is set on the odoo Debian
      package directly.
      
      Part-of: odoo/odoo#78010
      248762c8
  4. Sep 15, 2021
  5. 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
  6. Jul 10, 2020
  7. May 05, 2020
  8. Feb 05, 2020
  9. 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
  10. Oct 15, 2019
  11. Jul 04, 2019
  12. Apr 26, 2019
  13. Apr 25, 2019
  14. Feb 05, 2019
  15. Nov 13, 2018
    • Christophe Monniez's avatar
      [FIX] packaging: make Debian package depends on qrcode and vobject · 2ff49c5f
      Christophe Monniez authored
      As stated in issue #27752, some Debian packages are only recommended.
      As a consequence, these packages are not installed on the Official
      Docker image. In that case, if the user wants to install an Odoo module
      that needs one of these package, the Docker container has to be
      modified.
      
      python3-qrcode and python3-vobject are now part of the latest Debian
      stable (stretch) and the latest Ubuntu LTS (Bionic Beaver).
      Also, they are pure python, and very small.
      
      Thus, the Debian package can depends on them.
      
      co-author: @sbidoul
      Fixes #27752
      Closes #28588
      Closes #28371
      Closes #28372
      2ff49c5f
  16. Nov 08, 2018
    • Christophe Monniez's avatar
      [REM] packaging: remove useless code · 055e1b83
      Christophe Monniez authored
      PKG-INFO is generated during the setup phase and is not needed anymore.
      Also this file contains outdated informations.
      
      py2exe is not used anymore to build the windows installer.
      
      closes odoo/odoo#28494
      055e1b83
  17. Jun 08, 2018
    • Christophe Monniez's avatar
      [FIX] packaging: add BeautifulSoup to py2exe setup · 2da4eb58
      Christophe Monniez authored
      When trying to import an OFX bank statetement under MS Windows, a
      Traceback states that BeautifulSoup is missing.
      
      During the build process, py2exe didn't autodiscover that BeautifulSoup
      is needed by the ofxparse package.
      With this commit, BeautifulSoup is explicitely added to py2exe packages.
      The Nightly VM was updated accordingly.
      
      opw-1848202
      Unverified
      2da4eb58
  18. Apr 23, 2018
  19. Nov 16, 2017
  20. Oct 12, 2017
  21. Oct 09, 2017
  22. Oct 03, 2017
  23. 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
  24. May 12, 2017
  25. May 10, 2017
    • xmo-odoo's avatar
      [FIX] P3: list -> iterable builtins (#16811) · fffaf735
      xmo-odoo authored
      In Python 3:
      
      * various builtins and dict methods were changed to return
        view/iterable objects rather than lists
      * and the separate Python 2 view/iterable builtins and methods were
        removed altogether
      
      This is problematic when using these items as list (which the happens
      repeatedly in Odoo), but more viciously when iterating *multiple times*
      over them (which also happens, which I've messed up multiple times while
      writing this, and which is a pain to debug even when you've just created
      the issue).
      
      Convert all code using these to semantics-matching cross-version
      helper functions to get the LCD behaviour between P2 and P3, and
      forbid the builtins via lint.
      
      issue #8530
      fffaf735
  26. May 08, 2017
    • Laurent Smet's avatar
      [REM] odoo/report: remove deprecated stuff · 3425752e
      Laurent Smet authored
      - RML Reports
      - Webkit Reports (most part already removed by 13b9982c)
      - LocalService in netsvc.py
      - rename attributes like rml_% to report_%
      - rename ir.actions.report.xml to ir.actions.report
      - allow rendering directly on an ir.actions.report by calling render method
      - remove 'controller' report_type
      - remove unused res.font stuff
      - remove print_report method in models.py (not used)
      - restore removed call to pdftotext process in test_reports
      3425752e
  27. Apr 28, 2017
  28. Apr 27, 2017
    • xmo-odoo's avatar
      [FIX] builtins removed from Python 3 · 2e6a589f
      xmo-odoo authored
      * Reverse wrapper courtesy of @rco-odoo's original P3 branch
      * thin compat module stripped down from werkzeug (to augment as needed)
      
      issue 8530
      2e6a589f
  29. Oct 24, 2016
  30. Sep 30, 2016
    • Simon Lejeune's avatar
      [REF] cli: renamed openerp-server to odoo-bin · ed8f0c83
      Simon Lejeune authored
      The use of an entry point was considered in order to provide
      an `odoo` command in the path for the packages users, but the
      generated entry point will first check that all the things in
      install_requires were provided in a not bright way: it'll check
      that it matches a distribution name. This does not work because
      python-chart does not have the distrubtion name "pychart" which
      is provided by the python-pychart package in debian jessie. Same
      for suds-jurko which is provided by python-suds in debian stretch
      but does not have the distribution name "suds".
      
      Also, adapted the  packages tests to these cli changes.
      ed8f0c83
    • Simon Lejeune's avatar
      [REF] cli: rename odoo.py to setup_dev.py · 2d5fc151
      Simon Lejeune authored
      and move it under the setup package. Since the rename of the
      openerp directory into odoo, having a script named "odoo.py"
      conflicts with a package named "odoo".
      2d5fc151
    • Simon Lejeune's avatar
      [REF] packaging: openerp has been renamed odoo · eb501081
      Simon Lejeune authored
      Fix the various place when the rename of the git root directory
      broke the packaging script. Also, we can now name the library
      "odoo".
      eb501081
  31. Sep 07, 2016
    • Simon Lejeune's avatar
      [REF] server: remove the openerp-gevent file · 76c7041c
      Simon Lejeune authored
      * use a special arg in odoo.py
      * note that the previous implementation was relying on the fact that
        the openerp-gevent file was located in the same directory than the
        odoo.py file. This was no longer true since rev a0eb172c
        This commit brings back this behavior.
      76c7041c
  32. Jul 07, 2016
  33. Jun 14, 2016
    • Simon Lejeune's avatar
      [REV] Packaging: remove "openerp-gevent" from script · c12c0976
      Simon Lejeune authored
      This reverts commit a0eb172c and thus
      allow to actually use the longpolling feature.
      
      The commit was made originally to better follow the debian packaging
      guidelines.
      
      A better solution will be implemented for v10: removing the `openerp-gevent`
      script to replace it with a special argument in `odoo.py`.
      
      There is still a dependency issue as we need psycogreen but this dependency
      is not met in debian wheezy. This will be made a hard dependency for v10 as
      it is available in debian jessie.
      
      opw 678334
      c12c0976
  34. Dec 01, 2015
  35. Nov 26, 2015
  36. Oct 12, 2015
  37. Oct 08, 2015
Loading