Commit eb563fcf authored by Tatuya Kamada's avatar Tatuya Kamada

It is need to pass the context movement, otherwise Business Path predicate API does not work.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34690 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ba5f4f56
...@@ -61,7 +61,7 @@ class TradeModelRule(Rule): ...@@ -61,7 +61,7 @@ class TradeModelRule(Rule):
for amount in trade_condition.getAggregatedAmountList(context_movement): for amount in trade_condition.getAggregatedAmountList(context_movement):
# business path specific # business path specific
business_path_list = business_process.getPathValueList( business_path_list = business_process.getPathValueList(
trade_phase=amount.getTradePhaseList()) trade_phase=amount.getTradePhaseList(), context=context_movement)
if len(business_path_list) == 0: if len(business_path_list) == 0:
raise ValueError('Cannot find Business Path') raise ValueError('Cannot find Business Path')
......
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