Wednesday, July 30, 2025
3 changes · saas-18.1
Enhancements to existing features
This update aligns the certified EU IoT scale validation with recent Toledo scale error checks. It helps keep point-of-sale scale certification behavior consistent after related platform changes.
Original PR description
This PR adapts the scale checksum to the PR adding the error checks to Toledo scales: https://github.com/odoo/odoo/pull/217674 Forward-Port-Of: odoo/enterprise#89602
Miscellaneous changes
The button save and all the logic about trusted orders were removed. This commit puts it back. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#200567
Original PR description
The button save and all the logic about trusted orders were removed. This commit puts it back. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#200567
**Step to reproduce:** 1. Install mrp & sales module. 2. Ensure Product Packaging is activated for Inventory. 3. Create a product with a Kit-type BOM that includes two components. 4. Assign packaging to the product. 5. Create and confirm a Sales Order for this product. 6. Open the Delivery Order generated from the Sales Order. 7. Remove the packaging from one of the components of the kit in the delivery order. 8. Try to print the Picking Operations report. **Is
Original PR description
**Step to reproduce:** 1. Install mrp & sales module. 2. Ensure Product Packaging is activated for Inventory. 3. Create a product with a Kit-type BOM that includes two components. 4. Assign packaging…
**Step to reproduce:**
1. Install mrp & sales module.
2. Ensure Product Packaging is activated for Inventory.
3. Create a product with a Kit-type BOM that includes two components.
4. Assign packaging to the product.
5. Create and confirm a Sales Order for this product.
6. Open the Delivery Order generated from the Sales Order.
7. Remove the packaging from one of the components of the kit in the delivery order.
8. Try to print the Picking Operations report.
**Issue:**
When printing the Picking Operations report, a
`ZeroDivisionError: float division by zero` occurs during the
computation of the `product_packaging_qty` field on stock.move.line.
**Cause:**
The `_compute_product_packaging_qty` method performs a
division operation that assumes packaging is present on the move:
https://github.com/odoo/odoo/blob/c1d88949a3c305b425ab3a862741ebab7b7cd344/addons/mrp/models/stock_move.py#L101
When the packaging is removed, `move.product_packaging_id` becomes
falsy, and accessing `.qty` returns 0. This leads to division by zero.
**Solution:**
To fix this, the computation of product_packaging_qty is avoided for kit
component move lines that do not have packaging assigned.
This ensures that the computation only applies to valid lines with the packaging.
**opw-4805679**
Forward-Port-Of: odoo/odoo#212907