mirror of
https://gitlab.com/datalifeit/trytond-stock_lot_fifo
synced 2023-12-14 06:02:54 +01:00
Modified stock_date_end on context of date today to date of the move.
This commit refs #19762
(cherry picked from commit 4dd5268842
)
This commit is contained in:
parent
f44f06a3ee
commit
760da62ea5
5
stock.py
5
stock.py
|
@ -9,11 +9,8 @@ class Move(metaclass=PoolMeta):
|
|||
|
||||
@property
|
||||
def fifo_search_context(self):
|
||||
pool = Pool()
|
||||
Date = pool.get('ir.date')
|
||||
today = Date.today()
|
||||
return {
|
||||
'stock_date_end': today,
|
||||
'stock_date_end': self.effective_date or self.planned_date,
|
||||
'locations': [self.from_location.id],
|
||||
'stock_assign': True,
|
||||
'forecast': False,
|
||||
|
|
Loading…
Reference in a new issue