[Erp5-report] r41995 aurel - /erp5/trunk/products/ERP5/ExplanationCache.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jan 4 15:13:23 CET 2011
Author: aurel
Date: Tue Jan 4 15:13:23 2011
New Revision: 41995
URL: http://svn.erp5.org?rev=41995&view=rev
Log:
it is necessary to pass the context parameter
Modified:
erp5/trunk/products/ERP5/ExplanationCache.py
Modified: erp5/trunk/products/ERP5/ExplanationCache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/ExplanationCache.py?rev=41995&r1=41994&r2=41995&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/ExplanationCache.py [utf8] (original)
+++ erp5/trunk/products/ERP5/ExplanationCache.py [utf8] Tue Jan 4 15:13:23 2011
@@ -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(
More information about the Erp5-report
mailing list