Commit f98056fc authored by Łukasz Nowak's avatar Łukasz Nowak

- movement group uses category, which is considered as list, so use proper key

 - as this is list check if this is subset of possible updating delivery


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26179 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 99b94a44
...@@ -41,12 +41,12 @@ class OrderMovementGroup(MovementGroup): ...@@ -41,12 +41,12 @@ class OrderMovementGroup(MovementGroup):
def _getPropertyDict(self, movement, **kw): def _getPropertyDict(self, movement, **kw):
property_dict = {} property_dict = {}
order_relative_url = self._getOrderRelativeUrl(movement) order_relative_url = self._getOrderRelativeUrl(movement)
property_dict['causality'] = order_relative_url property_dict['causality_list'] = [order_relative_url]
return property_dict return property_dict
def test(self, movement, property_dict, **kw): def test(self, movement, property_dict, **kw):
if property_dict['causality'] in movement.getCausalityList(): if set(property_dict['causality_list']).issubset(movement.getCausalityList()):
property_dict['causality'] = movement.getCausalityList() property_dict['causality_list'] = movement.getCausalityList()
return True, property_dict return True, property_dict
else: else:
return False, property_dict return False, property_dict
......
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