[Erp5-report] r31490 kazuhiko - /erp5/trunk/products/ERP5/Tool/SolverTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Dec 28 15:52:54 CET 2009


Author: kazuhiko
Date: Mon Dec 28 15:52:51 2009
New Revision: 31490

URL: http://svn.erp5.org?rev=31490&view=rev
Log:
add XXX note in current implementation of SolverTool.getSolverDecisionApplicationValueList().

Modified:
    erp5/trunk/products/ERP5/Tool/SolverTool.py

Modified: erp5/trunk/products/ERP5/Tool/SolverTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/SolverTool.py?rev=31490&r1=31489&r2=31490&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/SolverTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/SolverTool.py [utf8] Mon Dec 28 15:52:51 2009
@@ -202,6 +202,9 @@
       test_property = 'quantity'
     application_value = movement
     try:
+      # XXX this way does not work correctly for category,
+      # eg. delivery_line.hasProperty('source') returns True even if it
+      # is only difined in its parent delivery.
       while not application_value.hasProperty(test_property):
         application_value = application_value.getParentValue()
     except AttributeError:




More information about the Erp5-report mailing list