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):
def _getPropertyDict(self, movement, **kw):
property_dict = {}
order_relative_url = self._getOrderRelativeUrl(movement)
property_dict['causality'] = order_relative_url
property_dict['causality_list'] = [order_relative_url]
return property_dict
def test(self, movement, property_dict, **kw):
if property_dict['causality'] in movement.getCausalityList():
property_dict['causality'] = movement.getCausalityList()
if set(property_dict['causality_list']).issubset(movement.getCausalityList()):
property_dict['causality_list'] = movement.getCausalityList()
return True, property_dict
else:
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