Commit 3c5987f9 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

we need to calculate parent delivery in test() too.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35179 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 16090ae7
......@@ -54,8 +54,14 @@ class ParentDeliveryPropertyMovementGroup(PropertyMovementGroup):
if x in property_list]
else:
target_property_list = self.getTestedPropertyList()
if document == document.getDeliveryValue():
movement = document.getMovementList()[0].getDeliveryRelatedValue()
else:
movement = document.getDeliveryRelatedValue()
parent_delivery = self._getParentDelivery(movement)
for prop in target_property_list:
if property_dict['_%s' % prop] != self._getProperty(document, prop):
if property_dict['_%s' % prop] != self._getProperty(parent_delivery,
prop):
return False, {}
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