Saturday, August 9, 2025
3 changes · saas-18.3
Resolved issues and error corrections
This fix updates internal mimetype tests so they pass whether or not the optional python-magic library is installed. It helps keep automated checks reliable across different environments without changing customer-facing behavior.
Original PR description
Those tests are failing when python-magic is installed. Since 26f9c82b99 Odoo > saas-18.4 has this lib as a requirement and comes with appropriate fixes. This commit adapts some test for versions prior to saas-18.4 to also work when the python-magic lib is installed. Forward-Port-Of: odoo/odoo#221408 Forward-Port-Of: odoo/odoo#221045
A test for importing duplicate accounting journals now uses the correct spreadsheet file type. This prevents false failures in environments with additional file detection libraries installed, making automated checks more reliable without changing user-facing behavior.
Original PR description
[FIX] account_base_import: fix mime type The `test_duplicate_journals_import` test fails when the magic lib is present. While the `xlsx` detection is supported, the test calls the import wizard with `xlsx` files but `application/vnd.ms-excel` as the file type which is for `xls` files. With this commit, the appropriate file type is given and the test works in all cases. (tested with Docker16, PureNoble and PureBookworm docker files) Forward-Port-Of: odoo/enterprise#91450 Forward-Port-Of: odoo/enterprise#91267
The Czech VIES summary report now counts invoices instead of invoiced quantities, groups records more appropriately, and rounds totals to whole Czech crowns. This helps businesses submit more accurate VAT summary reporting in line with official requirements.
Original PR description
There are some errors in the VIES summary report fixed here:
1. The supply number is not the quantity invoiced, it is the
number of invoices
2. There was some confusion between the terms "supply transaction"
and "supply code", with "supply code" not being used
in this report (but still in Python code to avoid breaking stable versions)
3. We were considering journal items, whereas it is preferable
to group them by journal entry
4. The total value is rounded up to the nearest whole crown (Czech currency)
Here is a link to the documentation:
adisspr.mfcr.cz/dpr/adis/idpr_pub/epo2_info/popis_struktury_detail.faces?zkratka=DPHSHV
where pln_hodnota is the total value; pln_pocet is the supply number; and k_pln_eu is the supply transaction.
opw-4688616
Forward-Port-Of: odoo/enterprise#91891
Forward-Port-Of: odoo/enterprise#88279