Commit 2b1aeea3 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 9fdf270b
......@@ -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