Commit 4862a9a8 authored by Sebastien Robin's avatar Sebastien Robin

stock optimisation: give possibility to pass more parameters

parent d22f5b85
...@@ -179,12 +179,13 @@ class BuilderMixin(XMLObject, Amount, Predicate): ...@@ -179,12 +179,13 @@ class BuilderMixin(XMLObject, Amount, Predicate):
# Inventory can be negative in some date, and positive in futur !! # Inventory can be negative in some date, and positive in futur !!
# This must be done by subclassing OrderBuilder with a new inventory # This must be done by subclassing OrderBuilder with a new inventory
# algorithm. # algorithm.
inventory_kw = kw.copy()
inventory_kw.setdefault('group_by_variation', 1)
inventory_kw.setdefault('group_by_resource', 1)
inventory_kw.setdefault('group_by_section', 0)
sql_list = self.portal_simulation.getFutureInventoryList( sql_list = self.portal_simulation.getFutureInventoryList(
group_by_variation=1,
group_by_resource=1,
group_by_node=group_by_node, group_by_node=group_by_node,
group_by_section=0, **inventory_kw)
**kw)
# min_flow and max_delay are stored on a supply line. By default # min_flow and max_delay are stored on a supply line. By default
# we can get them through a method having the right supply type prefix # we can get them through a method having the right supply type prefix
# like getPurchaseSupplyLineMinFlow. So we need to guess the supply prefix # like getPurchaseSupplyLineMinFlow. So we need to guess the supply prefix
......
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