mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
@@ -22,6 +22,8 @@ class StockWarehouse(models.Model):
|
||||
:return: datetime: resulting date.
|
||||
"""
|
||||
self.ensure_one()
|
||||
if isinstance(delta, float):
|
||||
delta = round(delta)
|
||||
if not isinstance(date_from, datetime):
|
||||
date_from = fields.Datetime.to_datetime(date_from)
|
||||
if delta == 0:
|
||||
|
||||
Reference in New Issue
Block a user