Saturday, July 12, 2025
3 changes · saas-18.1
Resolved issues and error corrections
This fix prevents invoice creation from crashing when a related project or distribution account has already been deleted. Businesses can continue invoicing sales orders for service products without manual cleanup or interruption.
Original PR description
When creating an invoice from a sales order linked to a service-type product that auto-generates a project, deleting the project before invoicing caused an error: "Record does not exist or has been deleted." This fix filters `browse()` result using `exists()` to ensure that the linked distribution account still exists. Steps to reproduce: - Create a service product that creates a project on order - Add it to a sales order and confirm - Delete the project - Try to create an invoice → error occurs opw-4891937 Forward-Port-Of: odoo/odoo#217870
This fix makes cash rounding details optional during electronic invoice generation. It helps prevent invoice processing failures when that rounding information is not provided, improving reliability without changing user workflows.
Original PR description
Recently in commit b033a87bbf38ed12364ebf2e3ce0cefb2670470f the UBL generation was improved to handle cash rounding better. I.e. a new key 'cash_rounding_base_lines' was introduced to the `vals` used in the generation. This commit makes it optional to avoid tracebacks in case it is forgotten to be added. task-None Forward-Port-Of: odoo/odoo#218621
Miscellaneous changes
This commit adds a test case which ensures that updates in existing records are properly saved in local database and are available after refresh opw-4778516 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#209461
Original PR description
This commit adds a test case which ensures that updates in existing records are properly saved in local database and are available after refresh opw-4778516 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#209461