Commit cbba0277 authored by Jérome Perrin's avatar Jérome Perrin

"all others" means everything which is not selected


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40952 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e4efb43a
......@@ -239,8 +239,8 @@ class NodeBudgetVariation(BudgetVariation):
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment