[Erp5-report] r40952 jerome - /erp5/trunk/products/ERP5/Document/NodeBudgetVariation.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Dec 1 09:57:53 CET 2010


Author: jerome
Date: Wed Dec  1 09:57:52 2010
New Revision: 40952

URL: http://svn.erp5.org?rev=40952&view=rev
Log:
"all others" means everything which is not selected

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

Modified: erp5/trunk/products/ERP5/Document/NodeBudgetVariation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/NodeBudgetVariation.py?rev=40952&r1=40951&r2=40952&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/NodeBudgetVariation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/NodeBudgetVariation.py [utf8] Wed Dec  1 09:57:52 2010
@@ -239,8 +239,8 @@ class NodeBudgetVariation(BudgetVariatio
     key = BudgetVariation._getCellKeyFromInventoryListBrain(
                    self, brain, budget_line, cell_key_cache=cell_key_cache)
     if self.getProperty('include_virtual_other_node'):
-      if key not in [x[1] for x in
-          self.getBudgetVariationRangeCategoryList(budget_line)]:
+      if key not in budget_line.getVariationCategoryList(
+          base_category_list=(self.getProperty('variation_base_category'),)):
         key = '%s/budget_special_node/all_other' % (
             self.getProperty('variation_base_category'),)
     return key



More information about the Erp5-report mailing list