mirror of
https://bitbucket.org/presik/trytonpsk-stock_co.git
synced 2023-12-14 05:43:05 +01:00
minor fix order search lot
This commit is contained in:
parent
b50f821a70
commit
e84364488f
|
@ -90,7 +90,7 @@ class InternalShipment(metaclass=PoolMeta):
|
|||
('active', '=', True),
|
||||
('quantity', '>', 0),
|
||||
]
|
||||
lots = Lot.search(dom, order=[('create_date', 'ASC')])
|
||||
lots = Lot.search(dom, order=[('expiration_date', 'ASC NULLS LAST'), ('create_date', 'ASC')])
|
||||
return lots
|
||||
|
||||
for move in shipment.moves:
|
||||
|
|
Loading…
Reference in a new issue