Thursday, September 18, 2025
2 changes · 18.0
Resolved issues and error corrections
This fix makes automated invoice date checks for Mexican electronic invoicing less sensitive to tiny timing differences. It helps avoid false test failures without changing customer-facing invoicing behavior.
Original PR description
ignored micro-seconds in CFDI date assertion to avoid test failure build_error-223223
This fix prevents Odoo's core data loading process from crashing in rare cases involving invalid or mixed record references. It improves system stability and consistency without changing normal user workflows.
Original PR description
This commit addresses two corner cases that cause `fetch()` to crash: Mixing new and real records: - Issue: If a recordset contains both new and real records, `fetch()` raises an `AccessError`. - Rationale: While we typically assume that new and real records are never mixed, certain recordset operations can inadvertently lead to this state. Handling this case improves the overall robustness of the ORM. Using `False` as a record id: - Issue: Using a record with a `False` id, such as `browse([False])`, causes a SQL error when `fetch()` is called. - Rationale: Other operations, like `browse([False]).name`, work without crashing. To ensure consistency across the ORM, `fetch()` should also handle `False` ids without error.