diff --git a/addons/sale_stock/models/sale_order.py b/addons/sale_stock/models/sale_order.py index 495a691061e..86fcf8150bc 100644 --- a/addons/sale_stock/models/sale_order.py +++ b/addons/sale_stock/models/sale_order.py @@ -299,7 +299,7 @@ class SaleOrderLine(models.Model): # We first loop over the SO lines to group them by warehouse and schedule # date in order to batch the read of the quantities computed field. for line in self: - if not line.display_qty_widget: + if not (line.product_id and line.display_qty_widget): continue if line.order_id.commitment_date: date = line.order_id.commitment_date