diff --git a/sale_manual_delivery/models/sale_order.py b/sale_manual_delivery/models/sale_order.py index 17e413ba712..776731e248b 100644 --- a/sale_manual_delivery/models/sale_order.py +++ b/sale_manual_delivery/models/sale_order.py @@ -24,8 +24,7 @@ class SaleOrder(models.Model): def _compute_delivery_pending(self): for rec in self: lines_pending = rec.order_line.filtered( - lambda x: x.product_id.type != "service" - and x.qty_to_procure > 0 + lambda x: x.product_id.type != "service" and x.qty_to_procure > 0 ) rec.has_pending_delivery = bool(lines_pending)