17.01.26
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user