Commit 252ed8bd authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

erp5_base: Add Check in Supply Builder to avoid infinite loop

parent c838a2e7
......@@ -532,6 +532,7 @@ class BuilderMixin(XMLObject, Amount, Predicate):
limit_date,
# Hackish and dangerous
next_start_date=limit_date)).earliestTime()
assert limit_date != limit_date_list[-1]
# evaluate future inventory at date
future_inventory_to_date = portal.portal_simulation.getFutureInventory(
......
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