Commit 719ecb49 authored by Aurel's avatar Aurel

it is necessary to pass the context parameter


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41995 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7c4cebef
......@@ -341,12 +341,12 @@ class ExplanationCache:
# XXX-JPS this is only useful for production (MRP) in reality
# whenever trade model path define time constraints within the same
# movement generator (ie. transformation with multiple phases)
path_list = business_process.getTradeModelPathValueList(trade_phase=trade_phase)
path_list = business_process.getTradeModelPathValueList(trade_phase=trade_phase, context=business_process)
LOG('path_list', 0, '%s' % trade_phase)
if not len(path_list):
raise ValueError('No Trade Model Path defines a reference data.')
path = path_list[0]
path = path_list[0]
# XXX-JPS - for now take arbitrary one
# but we should in reality some way to configure this
start_date, stop_date = business_process.getExpectedTradeModelPathStartAndStopDate(
......
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