This commit is contained in:
2026-01-17 09:25:00 +01:00
parent 660e714983
commit 9c6029d152
2 changed files with 23 additions and 1 deletions

View File

@@ -578,6 +578,14 @@ class Lot(metaclass=PoolMeta):
return True
return False
def get_received_move(self):
if self.lot_move:
lm = sorted(self.lot_move, key=lambda x: x.sequence, reverse=True)
for m in lm:
if m.move.from_location.type == 'supplier' and m.move.state == 'done':
return m
return None
def GetShipment(self,type):
if type == 'in':
m = self.get_current_supplier_move()