mirror of
https://gitlab.com/datalifeit/trytond-stock_lot_fifo
synced 2023-12-14 06:02:54 +01:00
Modified behavior when assigning entry move of product from supplier
This commit refs #27341
This commit is contained in:
parent
915decaa56
commit
59c9d04e3f
1 changed files with 3 additions and 1 deletions
4
stock.py
4
stock.py
|
@ -2,6 +2,7 @@
|
|||
# copyright notices and license terms.
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.pyson import Id
|
||||
|
||||
|
||||
class Move(metaclass=PoolMeta):
|
||||
|
@ -37,7 +38,8 @@ class Move(metaclass=PoolMeta):
|
|||
return order
|
||||
|
||||
def check_lot(self):
|
||||
if not self.product.lot_force_assign:
|
||||
if (not self.product.lot_force_assign
|
||||
or self.from_location.type == 'supplier'):
|
||||
return super().check_lot()
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Reference in a new issue