mirror of
https://gitlab.com/datalifeit/trytond-stock_lot_fifo
synced 2023-12-14 06:02:54 +01:00
Compare commits
No commits in common. "5171c7c9b98e1c254fbddbd2fdfdf18593cceda3" and "a7a4cb019908e4884c183a3c2af9a9d0b240f154" have entirely different histories.
5171c7c9b9
...
a7a4cb0199
5
stock.py
5
stock.py
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue