Commit 03d52550 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

same as 35180, the expected behaviour of this movement group in delivery level is unclear.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35367 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 99d95468
...@@ -55,13 +55,16 @@ class ParentDeliveryPropertyMovementGroup(PropertyMovementGroup): ...@@ -55,13 +55,16 @@ class ParentDeliveryPropertyMovementGroup(PropertyMovementGroup):
else: else:
target_property_list = self.getTestedPropertyList() target_property_list = self.getTestedPropertyList()
if document == document.getDeliveryValue(): if document == document.getDeliveryValue():
movement = document.getMovementList()[0].getDeliveryRelatedValue() # XXX what is the expected behaviour of this movement group in
# delivery level?
pass
else: else:
movement = document.getDeliveryRelatedValue() movement = document.getDeliveryRelatedValue()
parent_delivery = self._getParentDelivery(movement) if movement is None:
return False, {}
document = self._getParentDelivery(movement)
for prop in target_property_list: for prop in target_property_list:
if property_dict['_%s' % prop] != self._getProperty(parent_delivery, if property_dict['_%s' % prop] != self._getProperty(document, prop):
prop):
return False, {} return False, {}
return True, {} return True, {}
......
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