Commit ed4e3e4e authored by Jérome Perrin's avatar Jérome Perrin

don't pass delivery_relative_url_list to searchMovementList to prevent a catalog warning

parent 7558a6b2
...@@ -130,7 +130,6 @@ class BuilderMixin(XMLObject, Amount, Predicate): ...@@ -130,7 +130,6 @@ class BuilderMixin(XMLObject, Amount, Predicate):
# use only Business Link related movements # use only Business Link related movements
kw['causality_uid'] = [link_value.getUid() for link_value in business_link_value_list] kw['causality_uid'] = [link_value.getUid() for link_value in business_link_value_list]
movement_list = self.searchMovementList( movement_list = self.searchMovementList(
delivery_relative_url_list=delivery_relative_url_list,
applied_rule_uid=applied_rule_uid, applied_rule_uid=applied_rule_uid,
**kw) **kw)
if not movement_list: if not movement_list:
...@@ -234,11 +233,9 @@ class BuilderMixin(XMLObject, Amount, Predicate): ...@@ -234,11 +233,9 @@ class BuilderMixin(XMLObject, Amount, Predicate):
Returns a list of simulation movements (or something similar to Returns a list of simulation movements (or something similar to
simulation movements) to construct a new delivery. simulation movements) to construct a new delivery.
""" """
method_id = self.getSimulationSelectMethodId() method_id = self.getSimulationSelectMethodId() or 'portal_catalog'
if method_id:
select_method = getattr(self.getPortalObject(), method_id) select_method = getattr(self.getPortalObject(), method_id)
else:
select_method = self.getPortalObject().portal_catalog
movement_list = [] # use list to preserve order movement_list = [] # use list to preserve order
movement_set = set() movement_set = set()
for movement in select_method(**kw): for movement in select_method(**kw):
......
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