From 90dfa3dd2fc0780b17faf61f0cccf310ebe66583 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 20 Dec 2024 12:13:36 +0100 Subject: [PATCH] [IMP] sale_manual_delivery: pre-commit stuff --- sale_manual_delivery/models/sale_order.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)