Skip to content
Snippets Groups Projects
  1. 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
  2. Sep 15, 2021
  3. 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
  4. Jul 10, 2020
  5. May 05, 2020
  6. Feb 05, 2020
  7. 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
  8. Oct 15, 2019
  9. Jul 04, 2019
  10. Apr 26, 2019
  11. Apr 25, 2019
  12. Feb 05, 2019
  13. 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
  14. 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
  15. 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
  16. Apr 23, 2018
  17. Nov 16, 2017
  18. Oct 12, 2017
  19. Oct 09, 2017
  20. Oct 03, 2017
  21. 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
  22. May 12, 2017
  23. 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
  24. 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
  25. Apr 28, 2017
  26. 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
  27. Oct 24, 2016
  28. 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
  29. 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
  30. Jul 07, 2016
  31. 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
  32. Dec 01, 2015
  33. Nov 26, 2015
  34. Oct 12, 2015
  35. Oct 08, 2015
  36. Sep 28, 2015
  37. Jul 31, 2015
Loading