From 13b7553641fb66015edb7a70f2ff233b9c624b35 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Sat, 3 Jan 2026 13:35:06 +0100 Subject: [PATCH] 03.01.26 --- modules/purchase_trade/dashboard.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/purchase_trade/dashboard.py b/modules/purchase_trade/dashboard.py index 77f3a5e..68c45d7 100755 --- a/modules/purchase_trade/dashboard.py +++ b/modules/purchase_trade/dashboard.py @@ -268,12 +268,10 @@ class Dashboard(ModelSQL, ModelView): conf = Shipment.search(['state','=','received']) shipment_r = len(conf) Lot = Pool().get('lot.lot') - lots = Lot.search(['sale_line','!=',None]) + lots = Lot.search([('sale_line','!=',None),('line','!=',None)]) lot_m = len(lots) - val = Lot.search(['sale_line','=',None]) + val = Lot.search([('sale_line','=',None),('line','!=',None)]) lot_a = len(val) - conf = Lot.search(['lot_type','=','physic']) - lot_al = len(conf) Invoice = Pool().get('account.invoice') invs = Invoice.search(['type','=','in']) inv_p = len(invs) @@ -325,8 +323,6 @@ class Dashboard(ModelSQL, ModelView): + str(lot_m) + "&lot_a=" + str(lot_a) - + "&lot_al=" - + str(lot_al) + "&inv_p=" + str(inv_p) + "&inv_p_p="