Commit 7c2743ba authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_base: Add Check in Supply Builder to avoid infinite loop

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