[Erp5-report] r25362 - /erp5/trunk/products/ERP5/Document/BudgetModel.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jan 29 10:57:59 CET 2009


Author: jerome
Date: Thu Jan 29 10:57:58 2009
New Revision: 25362

URL: http://svn.erp5.org?rev=25362&view=rev
Log:
skip budget variations returning [[]] as a cell range

Modified:
    erp5/trunk/products/ERP5/Document/BudgetModel.py

Modified: erp5/trunk/products/ERP5/Document/BudgetModel.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BudgetModel.py?rev=25362&r1=25361&r2=25362&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BudgetModel.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BudgetModel.py [utf8] Thu Jan 29 10:57:58 2009
@@ -69,7 +69,9 @@
         continue
       variation_cell_range = budget_variation.getCellRangeForBudgetLine(
                                budget_line, matrixbox=matrixbox)
-      if variation_cell_range and variation_cell_range not in cell_range:
+      if variation_cell_range \
+          and variation_cell_range != [[]] \
+          and variation_cell_range not in cell_range:
         cell_range.extend(variation_cell_range)
     return cell_range
 




More information about the Erp5-report mailing list