Daily updates from Odoo
Wednesday, November 27, 2024
3 changes · 17.0
Resolved issues and error corrections
This update fixes a problem where some Odoo clients using Quadrum or SW Sapien were receiving rejected CFDI invoices due to excessive schemaLocation headers. The change now only includes the necessary headers, ensuring invoices comply with Mexican tax regulations and avoid rejection.
Original PR description
Problem: ======== when using pacs : Quadrum, SW Sapien some clients get their CFDI rejected because the schemaLocation is is containing more headers than needed. Solution: ========= We will only keep the needed schemaLocation for customer invoice, so headers for Payment and External Trade will be removed. opw-4168509 Forward-Port-Of: odoo/enterprise#72450
This update ensures that tests for the account import process run consistently, regardless of whether the `xlrd` library is installed. Previously, tests were skipped when `xlrd` was available, leading to unreliable test results. This change utilizes `openpyxl` for XLSX files, guaranteeing test execution.
Original PR description
Since `xlrd >= 2.0` dropped XLSX support, we use `openpyxl` to open XLSX files if the `xlrd >= 2.0` is installed.[^1] However, the tests in `account_base_import` are skipped unless `xlrd.xlsx` can be imported. As a result, they are not run on runbot, where `xlrd >= 2.0` is installed. We therefore need to avoid skipping them if openpyxl is installed. runbot-108001 [^1]: https://github.com/odoo/odoo/pull/169245 Forward-Port-Of: odoo/enterprise#74608
This update ensures that the system correctly validates the origin and destination pairs before adding a reference number to delivery requests. This prevents errors and ensures accurate order processing, particularly when dealing with multiple locations.
Original PR description
validate origin/destination pairs before adding ReferenceNumber to the request