Commit 84916253 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

if rule is passed, use rule's updating testers for getting properties and categories values.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32184 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0cb750d8
......@@ -83,8 +83,14 @@ class MovementGeneratorMixin:
def _getInputMovementList(self, context):
raise NotImplementedError
def _getPropertyAndCategoryList(self, movement, business_path):
property_dict = _getPropertyAndCategoryList(movement)
def _getPropertyAndCategoryList(self, movement, business_path, rule=None):
if rule is None:
property_dict = _getPropertyAndCategoryList(movement)
else:
property_dict = {}
for tester in rule._getUpdatingTesterList():
property_dict.update(tester.getUpdatablePropertyDict(
movement, None))
if business_path is None:
return 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