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:
José Miguel Pardo Salar 2021-08-30 11:41:03 +02:00 committed by Sergio Morillo
parent f44f06a3ee
commit 760da62ea5

View file

@ -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,