Compare commits

..

No commits in common. "5171c7c9b98e1c254fbddbd2fdfdf18593cceda3" and "a7a4cb019908e4884c183a3c2af9a9d0b240f154" have entirely different histories.

View file

@ -26,11 +26,8 @@ class Move(metaclass=PoolMeta):
__name__ = 'stock.move'
def check_lot(self):
ShipmentIn = Pool().get('stock.shipment.in')
if (not self.product.lot_force_assign
or (
(not self.origin or isinstance(self.shipment, ShipmentIn))
and self.from_location.type == 'supplier')):
or self.from_location.type == 'supplier'):
return super().check_lot()
@classmethod