From 719ecb49869d4b76cfc462a59c71b90fdd89159e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Tue, 4 Jan 2011 14:13:23 +0000 Subject: [PATCH] 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 --- product/ERP5/ExplanationCache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5/ExplanationCache.py b/product/ERP5/ExplanationCache.py index 958f1f7dd4..d47c388e54 100644 --- a/product/ERP5/ExplanationCache.py +++ b/product/ERP5/ExplanationCache.py @@ -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( -- 2.30.9