Saturday, July 12, 2025
2 changes · saas-18.3
Resolved issues and error corrections
This fix makes cash rounding details optional during electronic invoice generation. It prevents failures when that rounding information is not provided, helping invoice exports continue reliably.
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
A purchase module test now uses a product type that is available without requiring the inventory module. This prevents unnecessary test failures and helps keep purchase functionality validation reliable.
Original PR description
`is_storable` is defined in `stock`. This test is located in `purchase`, that do not depend on `stock`. We use type='consu' instead. This change ensures that the product is created with the correct type. build_error-229762 Forward-Port-Of: odoo/odoo#218403