Friday, June 6, 2025
2 changes · 17.0
Resolved issues and error corrections
This fix adds a way for Odoo to choose which invoice lines are considered when checking previously delivered serial-numbered products. It helps prevent incorrect quantity validation in invoicing flows, especially where related custom or enterprise logic needs to exclude certain lines.
Original PR description
This commit introduces a hook filter method that allows to filter the amls taken into account in _get_invoiced_lot_values (verify the quantity of serial product previously delivered). PR enterprise: odoo/enterprise#81656 Ticket [link](https://www.odoo.com/odoo/project/49/tasks/4644031) opw-4644031
This fix restores automated checks for PDF and spreadsheet report exports while avoiding the slow, unreliable part of PDF creation. It helps keep financial reporting exports dependable without delaying validation runs or causing random failures.
Original PR description
In test_generate_all_export_files, PDF and XLSX reports were not generated due to them timing-out the runbot, which was happening randomly. This has been fixed here by only testing the generation of the data then given to wkhtmltopdf, since wkhtmltopdf is quite slow and can randomly create errors. This is taking about 4 minutes with this fix when all reporting modules are enabled in v17.0 but taking around 20 minutes when creating PDFs. task-3603619