From 5de70da3283d7571bd910d1fe70be0df8e0394de Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 20 Dec 2024 12:07:05 +0100 Subject: [PATCH] [IMP] sale_manual_delivery: enable multiple deliveries --- sale_manual_delivery/models/sale_order.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sale_manual_delivery/models/sale_order.py b/sale_manual_delivery/models/sale_order.py index e9929e0b5e8..776731e248b 100644 --- a/sale_manual_delivery/models/sale_order.py +++ b/sale_manual_delivery/models/sale_order.py @@ -24,12 +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 - and ( - not x.move_ids - or all(state in ("cancel",) for state in x.move_ids.mapped("state")) - ) + lambda x: x.product_id.type != "service" and x.qty_to_procure > 0 ) rec.has_pending_delivery = bool(lines_pending)