mirror of
https://gitlab.com/datalifeit/trytond-stock_move_time
synced 2023-12-14 04:42:59 +01:00
parent
80d7f74888
commit
cca7e04363
1 changed files with 1 additions and 1 deletions
2
stock.py
2
stock.py
|
@ -177,7 +177,7 @@ class ShipmentOut(metaclass=PoolMeta):
|
|||
@classmethod
|
||||
def set_end_date(cls, records, name, value):
|
||||
for record in records:
|
||||
if not record.start_date:
|
||||
if not record.start_date or not value:
|
||||
continue
|
||||
_interval = value - record.start_date
|
||||
record.interval = cls._format_interval(_interval)
|
||||
|
|
Loading…
Reference in a new issue