semillero-126 Gestión de costes: Subreglas
This commit is contained in:
parent
9ebc35b141
commit
739b31f693
9
stock.py
9
stock.py
|
@ -38,10 +38,11 @@ class Lot:
|
|||
with_childs=with_childs,
|
||||
grouping=grouping)
|
||||
keys_todel = []
|
||||
if lot_ids:
|
||||
for key, quantity in pbl.iteritems():
|
||||
if key[2] not in lot_ids:
|
||||
keys_todel.append(key)
|
||||
for key, quantity in pbl.iteritems():
|
||||
if lot_ids and key[2] and key[2] not in lot_ids:
|
||||
keys_todel.append(key)
|
||||
if not key[2]:
|
||||
keys_todel.append(key)
|
||||
if keys_todel:
|
||||
for k in keys_todel:
|
||||
del pbl[k]
|
||||
|
|
Loading…
Reference in New Issue