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. Mar 05, 2021
  4. Feb 24, 2021
  5. 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
  6. Oct 14, 2019
  7. Jun 05, 2019
  8. Nov 19, 2018
    • Christophe Monniez's avatar
      [FIX] packaging: add qrcode package to docker file · 51ee0c3c
      Christophe Monniez authored
      After the Odoo package is built, the package.py script uses a Docker
      image to test the package. After that python3-qrcode was added as a
      dependency for the package in 2ff49c5f , it revealed some issues.
      
      A missing cli parameter and a forgotten '&&' in the Dockerfile prevented
      the installation of the depending packages.
      
      Also, the script shebang was wrong by launching python2.
      
      Finally, the fact that python3-xlwt is missing in Debian stretch was
      highlighted. With this commit, the python3-xlwt is explicitly removed
      from the dependencies and the documentation is updated accordingly.
      
      closes odoo/odoo#28807
      51ee0c3c
  9. 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
  10. 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
  11. Jul 27, 2018
    • qsm-odoo's avatar
      [REF] web, *: update bootstrap-datetimepicker to tempusdominus · 6692919d
      qsm-odoo authored
      * website_form, debian
      
      Our old library for datetimepicker for bootstrap 3 is deprecated and
      an updated version is developed by the same team under the new name
      "tempusdominus", for bootstrap 4.
      
      The lib is imported by taking the *unminified build* JS and the *src*
      scss. Odoo is also bundling the lib better by putting the scss file
      in both backend and frontend assets instead of only in common (so that
      the scss is compiled differently for the frontend and the backend).
      
      Note: the lib also needed to be patched inline to solve a bug at one
      line.
      6692919d
  12. Jul 18, 2018
  13. Jun 15, 2018
    • Christophe Monniez's avatar
      [FIX] packaging: stop removing Odoo lib dir · 27e7d242
      Christophe Monniez authored
      When removing Odoo Debian package, the directory /var/lib/odoo is also
      removed. This directory could contain important data like filestore or
      custom modules.
      
      With this commit, this directory is preserved on removal and deleted
      when the purge command is issued with a Debian package manager.
      
      Fixes #22138
      Unverified
      27e7d242
  14. Apr 24, 2018
  15. Apr 18, 2018
  16. Jan 16, 2018
  17. Oct 12, 2017
  18. Oct 09, 2017
  19. Oct 03, 2017
  20. May 26, 2017
  21. Oct 24, 2016
  22. Sep 30, 2016
    • Simon Lejeune's avatar
      [REF] packaging: renamed configuration files · c59eb4ff
      Simon Lejeune authored
      no fallbacks were implemented to `openerp-server.conf`.
      c59eb4ff
    • 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] packaging: debian: remove unneeded recommanded dependencies · bc04ec94
      Simon Lejeune authored
      They were there since long time but to allow some obscure test
      to run. As they don't bring anything let's just drop them.
      bc04ec94
    • 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
  23. Aug 26, 2016
    • Simon Lejeune's avatar
      [FIX] packaging: Backport of efe37469 to 8.0 · c55c15ae
      Simon Lejeune authored
      [FIX] packaging: debian: update-python-module is no more
      
      The command is not installed by default. It was available in the
      python-support library which we didn't depend on and now this library
      is no more in debian jessie/ubuntu xenial.
      
      Backported for #13302
      Unverified
      c55c15ae
  24. Jun 10, 2016
    • Simon Lejeune's avatar
      [FIX] packaging: debian: update-python-module is no more · efe37469
      Simon Lejeune authored
      The command is not installed by default. It was available in the
      python-support library which we didn't depend on and now this library
      is no more in debian jessie/ubuntu xenial.
      
      fixes #11785
      efe37469
    • Simon Lejeune's avatar
      [REF] ir_qweb: less webasset: compress output instead of minifying it · 123e51f4
      Simon Lejeune authored
      * Remove dependency on less-plugin-clean-css which distribution
        packages are broken on debian stretch and derivated.
      * Updated documentation.
      * Lessc provides a `--compress` argument that could solve this issue.
        According to the documentation at http://lesscss.org/usage/: "[...]
        Compress using less built-in compression. This does an okay job but
        does not utilise all the tricks of dedicated css compression[...]"
        However, using this argument works on lessc 2.5.3 but not on 1.4.2
        (`--compress` arg is present but seems to be break some rules
        i haven't been able to put my finger on).
      * Finally, use the minification of the StylesheetAsset that takes care
        of removing the spaces, the comments and the sourcemap with regexes.
      
      fixes issue #9113
      123e51f4
  25. Dec 01, 2015
  26. Nov 26, 2015
  27. Nov 10, 2015
  28. Sep 28, 2015
  29. Sep 11, 2015
  30. Sep 08, 2015
  31. Jul 31, 2015
  32. Jul 14, 2015
Loading