Commit d1074720 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

tested property can be multiple.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32174 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c3d8e49a
...@@ -202,7 +202,7 @@ class RuleMixin: ...@@ -202,7 +202,7 @@ class RuleMixin:
""" """
tester_list = self.objectValues( tester_list = self.objectValues(
portal_type=self.getPortalDivergenceTesterTypeList()) portal_type=self.getPortalDivergenceTesterTypeList())
return [x for x in tester_list if x.getTestedProperty() == 'quantity'] return [x for x in tester_list if 'quantity' in x.getTestedPropertyList()]
def _newProfitAndLossMovement(self, prevision_movement): def _newProfitAndLossMovement(self, prevision_movement):
""" """
......
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