Friday, February 13, 2026
2 changes · 17.0
Resolved issues and error corrections
This update resolves an issue where comments within XML invoices (specifically around TaxExclusiveAmount) were causing the system to fail to recognize and process invoices. The fix ensures that comments are removed during XML parsing, allowing invoices to be correctly uploaded and processed. This prevents empty invoices from being created.
Original PR description
Issue: Comments in node with data as text may cause issue while reading data Step to reproduce: - In European company create an invoice to a company in the same country - Send it with peppol - Download the XML of the invoice - Add a comment right before the value in TaxExclusiveAmount like this <cbc:TaxExclusiveAmount><!-- -->0.00</cbc:TaxExclusiveAmount> - Go to accounting Dashboard - Click on "Upload" in the vendor dashboard - Select the previously modified XML Current behavior: - an empty invoice is created as the invoice builder failed Expected behavior: - Invoice should be recognized Cause: lxml treat data like this: <parentNode>parent_text<childNode>child_text</childNode>child_tail</parentNode>parent_tail So `tax_exclusive_amount_node.text` return '' instead of `0.00` opw-5462664 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#247549
This update corrects a bug where Odoo incorrectly reported stock availability in the past, particularly when considering stock locations within a hierarchy. The fix ensures that available quantities are accurately calculated, reflecting actual stock levels as of a specified date, even when locations are nested. This improves the reliability of stock reports and inventory management.
Original PR description
Problem, Odoo check the stock.move to decrease the quantity if we want available product quantity in a past. If i valid a stock move for new product with location_dest_id = A and stock.move.line with location_dest_id = B (B child of A) and i check the quantity in a past in B location, Odoo return the quant quantity in B location without decrease the last move line. Before fix: product.with_context(location=B).qty_available = 1 product.with_context(to_date="2025-09-01", location=B).qty_available = 1 After fix: product.with_context(location=B).qty_available = 1 product.with_context(to_date="2025-09-01", location=B).qty_available = 0 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr