Commit fc8196c2 authored by Sebastien Robin's avatar Sebastien Robin

inventory: getNextAlertInventoryDate expect having date

parent 4cee4a56
...@@ -2059,6 +2059,8 @@ class SimulationTool(BaseTool): ...@@ -2059,6 +2059,8 @@ class SimulationTool(BaseTool):
result = None result = None
# First look at current inventory, we might have already an inventory # First look at current inventory, we might have already an inventory
# lower than reference_quantity # lower than reference_quantity
if from_date is None:
from_date = DateTime()
current_inventory = self.getInventory(at_date=from_date, **kw) current_inventory = self.getInventory(at_date=from_date, **kw)
if current_inventory < reference_quantity: if current_inventory < reference_quantity:
result = DateTime() result = DateTime()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment