This commit is contained in:
2026-01-03 13:35:06 +01:00
parent bb117d4ee6
commit 13b7553641

View File

@@ -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="