- Jul 03, 2023
-
-
Christophe Monniez authored
The Debian package is replacing some fonts by a soft link to the Debian packaged ones. The glyphicons-halfings were for bootstrap 3.x which is not used anymore in Odoo, resulting in harmless broken links in the Debian package. Closes odoo/docker#453 closes odoo/odoo#125817 X-original-commit: bcc68143 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
- Feb 28, 2023
-
-
Xavier-Do authored
Odoo Test environments requires to modify many parts of the unittest TestCase, Suite and Result. The main initial reason is to **avoid to postpone result at the end of the test suite**, because even if it is convenient to have all errors visible after the tests in some case, odoo logs adds information during the execution that can be useful to debug when a test fail, to have context for an error. (see **OdooTestResult**) We are also fixing the stack trace comming from a unittest and since there is no proper way to hook inside the TestPartExecutor, a dirty hack injects anoter result on the outcome to manage the error and complete the stack trace. This was also a way to avoid to postpone subtest logs at the end of the test case (see _ErrorCatcher) `_feedErrorsToResult` was used to test the test suite behavior since there are many customization and this is quite fragile, especially if unittest changes behavior in other python version. **Python 3.11** introduced python/cpython#664448d8 That, in a way, goes in the same direction of the changed introduced with _ErrorCatcher: immediately feed errors to resut instead of postponing it. But this also removes `_feedErrorsToResult` that was used to test this behaviors, as well as other ones. Since odoo should remain multi-version, this amount of changes on the initial behavior become to complicate to keep cross-version and the (already in our mind for a while) solution to **vendor unittest** will help to simplify most of our test code base. This commit modified the vendored unittest files to simplify them as much as possible to suite our needs. Since the runner is still the unittest one, we need to inherit from unittest.Testcase in order to have the right type. This also means that we still have access to all TestCase methods without overriding them all. This is convenient for assertion methods as an example but the initial idea is to vendor our own version of TestCase to avoid having trouble to adapte our miscommunications to future python versions. A trade-off must be done to chose what should remain in our code base. The idea is to keep logic closely linked to our changes in our code base, mainly around the run method, but also addClassCleanup wich need to be vendored for python 3.7, but assertions methods are independent. Any logic can be moved fom unittest to our vendored version in the future if needed. Part-of: odoo/odoo#112294
-
- Feb 03, 2023
-
-
Christophe Monniez authored
When a odoo user already exists, the installation of the deb package fails because the `/var/lib/odoo` directory does not exists. The reason is that the postinst script is trying to change the permissions of this directory which is only created if a odoo user does not already exists. With this commit, the permission changes only occurs when the directory is created. closes odoo/odoo#111846 X-original-commit: 8e1ebd8d Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
- Jan 24, 2023
-
-
Christophe Monniez authored
The mnmliconsv21 is not used anymore for 7 years (see 660b13bb) Closes #6382 X-original-commit: 0f59b958 Part-of: odoo/odoo#110594
-
- Sep 23, 2022
-
-
Christophe Monniez authored
closes odoo/odoo#100964 Signed-off-by:
Olivier Dony <odo@odoo.com>
-
- Jul 27, 2022
-
-
Pierre Paridans authored
Since the revamp of the Kanban View in mobile and the migration of the Settings view to the OWL views, the jQuery.touchSwipe library is not used anymore. closes odoo/odoo#96608 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
- May 24, 2022
-
-
Antoine Guenet authored
This moves the `html2canvas` library from `point_of_sale` to `web_editor` so as to be able to use it in `convert_inline`. `point_of_sale`, depending from `web_editor`, doesn't lose access to the library. task-2856858 Part-of: odoo/odoo#91314
-
- Jan 12, 2022
-
-
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#82486 X-original-commit: b3b9627b Related: odoo/enterprise#23364 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Dec 22, 2021
-
-
Christophe Monniez authored
A bug[0] was detected in the Odoo Docker image 15.0 when trying to print invoices with arabic fonts (and probably other languages that need specific font) . It appears that the necessary fonts are not available in the container image. Strangely, the issue did not exists in previous Odoo Docker images. It appears that `fonts-dejavu-core` package was installed incidentally by `wkhtmltox`[1] which is installed from the official website. Note that the Debian version of `wkhtmltopdf`[2] does not provide this dependency. In the 15.0 Docker image, while the `wkhtmltox` is installed the same way, the `fonts-dejavu-core` package was not installed because the dependency of `fontconfig-config`[3] was already fulfilled by the `python3-renderpm`[4] from Debian Bullseye. Finally, to add more confusion, the Odoo package have an indirect dependency on `fonts-dejavu-core` through the `python3-pydot`[5] package. This explains why the issue was not found before. In order to avoid all this spaghetti dependency hell, this commit adds an explicit dependency on one of the multilingual fonts available in the Debian packages. [0] https://github.com/odoo/docker/issues/400 [1] https://github.com/wkhtmltopdf/wkhtmltopdf/releases/0.12.5/ [2] https://packages.debian.org/bullseye/wkhtmltopdf [3] https://packages.debian.org/bullseye/fontconfig-config [4] https://packages.debian.org/bullseye/python3-renderpm [5] https://packages.debian.org/bullseye/python3-pydot closes odoo/odoo#81742 X-original-commit: 3d6043a7 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
- Oct 21, 2021
-
-
Christophe Monniez authored
Mako is not used anymore for a long time. closes odoo/odoo#78781 X-original-commit: fb9f89af Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
- Oct 09, 2021
-
-
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. X-original-commit: 248762c8 Part-of: odoo/odoo#78097
-
- Sep 15, 2021
-
-
Nils Hamerlinck authored
- Up to odoo 10.0, feedparser dependency was optionally used in the cli of vendored html2text.py (see https://github.com/odoo/odoo/blob/10.0/addons/mail/models/html2text.py#L437) - Since 11.0 (67c17cb3), vendored html2text.py has been removed in favor of maintained package - Turns out the feedparser part in html2text was dead code for a long time anyway (see https://github.com/Alir3z4/html2text/issues/220 ) - So we can safely drop this dependency closes odoo/odoo#76571 X-original-commit: 153ecbba Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
- May 11, 2021
-
-
Christophe Monniez authored
The num2words Debian package exists in Debian Buster [0] and Ubuntu Focal [1]. [0]: https://packages.debian.org/buster/python3-num2words [1]: https://packages.ubuntu.com/focal/python3-num2words closes odoo/odoo#70666 X-original-commit: f882512f Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
- Apr 29, 2021
-
-
Simon Genin (ges) authored
-
- Apr 01, 2021
-
-
Antoine Guenet authored
Co-authored-by:
David Monjoie <dmo@odoo.com> Co-authored-by:
Antoine Guenet <age@odoo.com> Co-authored-by:
Nicolas Bayet <nby@odoo.com> Co-authored-by:
Sébastien Geelen <sge@odoo.com> Co-authored-by:
Emilien Durieu <edu@odoo.com>
-
- Mar 06, 2021
-
-
Christophe Monniez authored
In Debian and Ubuntu distros, the python reportlab package provides multiple binary packages among which python3-reportlab [0] [1] and python3-renderpm [2] [3]. The latter is only recommended, but is mandatory for odoo because it's needed for rendering barcode with the `asString` method. [0] https://packages.debian.org/buster/python3-reportlab [1] https://packages.ubuntu.com/focal/python3-reportlab [2] https://packages.debian.org/buster/python3-renderpm [3] https://packages.ubuntu.com/focal/python3-renderpm closes odoo/odoo#67418 X-original-commit: 73e99264 Signed-off-by:
Xavier Dollé (xdo) <xdo@odoo.com> Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
- Feb 26, 2021
-
-
Christophe Monniez authored
During the resolution of conflicts in odoo/odoo#66784, a typo was introduced in debian/control file. closes odoo/odoo#66916 X-original-commit: ccadcba6 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
- Feb 25, 2021
-
-
Christophe Monniez authored
Zeep replaced suds but Debian and Rpm packaging were not updated. Ofxparse is required but did not appear in Debian nor Rpm packaging. closes odoo/odoo#66814 X-original-commit: 280df5ac Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
- Jan 29, 2021
-
-
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:
Christophe Monniez (moc) <moc@odoo.com>
-
- Jan 04, 2021
-
-
Sébastien Delafond authored
closes odoo/odoo#64007 X-original-commit: cffe65f2 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
- Oct 23, 2020
-
-
Christophe Monniez authored
With this commit, the executions bits are fixed on some xml, csv and ttf files. The fix was initialy made at the Debian packaging level. As xlwt is now in Debian buster, the overide is removed. The linked fonts in Debian package are now removed in one line to simplify the code. closes odoo/odoo#60583 X-original-commit: f31bdc0a Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
- Oct 14, 2020
-
-
Sébastien Delafond authored
X-original-commit: af29d603
-
- Jul 10, 2020
-
-
Quentin De Paoli authored
closes odoo/odoo#54227 Related: odoo/enterprise#11742 Signed-off-by:
Olivier Dony (odo) <odo@openerp.com>
-
- Apr 01, 2020
-
-
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:
Xavier Morel (xmo) <xmo@odoo.com>
-
- Feb 05, 2020
-
-
Hardik Prajapati authored
Python module vatnumber doesn't seem maintained anymore. Therefore, we should: - call directly stdnum (which is maintained and mostly used everywhere in vatnumber) Also improve stdnum import, vat fix method and vat expected formats task-1915371 closes odoo/odoo#36978 Signed-off-by:
Quentin De Paoli (qdp) <qdp@openerp.com>
-
- Jan 22, 2020
-
-
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:
Christophe Monniez (moc) <moc@odoo.com>
-
- Oct 14, 2019
-
-
Christophe Monniez authored
As the python3-xlrd package is available in Debian stretch and Ubuntu bionic, there is no reason to not include it in Odoo debian package. However, it cannot be used in Odoo 11.0 package as it does not exists in Ubuntu Xenial. ubuntu package: https://packages.ubuntu.com/bionic/python3-xlrd debian package: https://packages.debian.org/stretch/python3-xlrd closes odoo/docker#276 closes odoo/odoo#38746 X-original-commit: acf413df Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
- Sep 10, 2019
-
-
Xavier-Do authored
closes odoo/odoo#36638 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
- Jun 05, 2019
-
-
Martin Trigaux authored
Use polib library that handles this correctly The complexity of the parser is moved to the library
-
- Nov 19, 2018
-
-
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
-
- Nov 13, 2018
-
-
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
-
- Oct 09, 2018
-
-
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
-
- Jul 27, 2018
-
-
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.
-
- Jul 18, 2018
-
-
Christophe Monniez authored
Since b60de0db Odoo requires chardet to be installed. With this commit, the Debian package will depends on python3-chardet.
-
- Jun 15, 2018
-
-
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
-
- Apr 24, 2018
-
-
Christophe Monniez authored
A dependency to libsass was added in debian package and in the docker file. The Odoo nightly builds of the deb package was failing because this lib is named libsass0 in Debian. Finally, this dependency is not required because python3-libsass already depends on libsass0.
-
- Apr 18, 2018
-
-
qsm-odoo authored
Include libsass instead of node-less Thank you to @d-fence for testing this.
-
- Jan 16, 2018
-
-
Akash Bhavsar authored
... and use Clipboard instead, which is already in web (put in the assets_common). Task #33274
-
- Oct 12, 2017
-
-
Christophe Monniez authored
On Ubuntu Xenian, the Odoo package was difficult to install because three Debian packages were required but could not be found in Ubuntu repositories. As those packages are not really crucial, they are now only suggegsted by the Debian package which is therefore installable on Ubuntu Xenial. One can manually install them as explained in the documentation. Closes #20000
-
Christophe Monniez authored
Purpose: openid is not used anymore in Odoo, therefore it can be safely removed.
-