Commit 63d37f16 authored by Jérome Perrin's avatar Jérome Perrin

fixup! budget: py3

parent fbc66ce3
...@@ -207,7 +207,7 @@ class CategoryBudgetVariation(BudgetVariation): ...@@ -207,7 +207,7 @@ class CategoryBudgetVariation(BudgetVariation):
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getBudgetVariationRangeCategoryList') 'getBudgetVariationRangeCategoryList')
def getBudgetVariationRangeCategoryList(self, context): def getBudgetVariationRangeCategoryList(self, budget):
"""Returns the Variation Range Category List that can be applied to this """Returns the Variation Range Category List that can be applied to this
budget. budget.
""" """
......
editable_property_list = zip(*context.BudgetLine_getEditablePropertyList())[0] editable_property_list = list(zip(*context.BudgetLine_getEditablePropertyList()))[0]
if 'destination_credit' in editable_property_list: if 'destination_credit' in editable_property_list:
return -1 return -1
......
...@@ -1190,23 +1190,6 @@ class TestBudget(ERP5TypeTestCase): ...@@ -1190,23 +1190,6 @@ class TestBudget(ERP5TypeTestCase):
self.assertEqual(default_cell_range, self.assertEqual(default_cell_range,
budget_line.BudgetLine_asCellRange('available')) budget_line.BudgetLine_asCellRange('available'))
if 0 :self.assertEqual(
dict(from_date=DateTime(2000, 1, 1),
at_date=DateTime(2000, 12, 31).latestTime(),
#node_category_strict_membership=['account_type/expense',
# 'account_type/asset'],
node_category_strict_membership='account_type',
section_category_strict_membership=['group/demo_group/sub1'],
group_by_node_category_strict_membership=True,
group_by_node=True,
node_uid=[self.portal.account_module.goods_purchase.getUid(),
self.portal.account_module.fixed_assets.getUid()],
group_by_section_category_strict_membership=True,
),
budget_model.getInventoryListQueryDict(budget_line))
atransaction = self.portal.accounting_module.newContent( atransaction = self.portal.accounting_module.newContent(
portal_type='Accounting Transaction', portal_type='Accounting Transaction',
resource_value=self.portal.currency_module.euro, resource_value=self.portal.currency_module.euro,
......
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