[Erp5-report] r34690 tatuya - /erp5/trunk/products/ERP5Legacy/Document/TradeModelRule.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Apr 20 19:16:54 CEST 2010


Author: tatuya
Date: Tue Apr 20 19:16:52 2010
New Revision: 34690

URL: http://svn.erp5.org?rev=34690&view=rev
Log:
It is need to pass the context movement, otherwise Business Path predicate API does not work.

Modified:
    erp5/trunk/products/ERP5Legacy/Document/TradeModelRule.py

Modified: erp5/trunk/products/ERP5Legacy/Document/TradeModelRule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Legacy/Document/TradeModelRule.py?rev=34690&r1=34689&r2=34690&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Legacy/Document/TradeModelRule.py [utf8] (original)
+++ erp5/trunk/products/ERP5Legacy/Document/TradeModelRule.py [utf8] Tue Apr 20 19:16:52 2010
@@ -61,7 +61,7 @@
     for amount in trade_condition.getAggregatedAmountList(context_movement):
       # business path specific
       business_path_list = business_process.getPathValueList(
-          trade_phase=amount.getTradePhaseList())
+          trade_phase=amount.getTradePhaseList(), context=context_movement)
       if len(business_path_list) == 0:
         raise ValueError('Cannot find Business Path')
 




More information about the Erp5-report mailing list