Commit bac6bad7 authored by Arnaud Fontaine's avatar Arnaud Fontaine

WIP

parent 3ace82ab
...@@ -42,8 +42,8 @@ if ledger is not None: ...@@ -42,8 +42,8 @@ if ledger is not None:
journal_search_kw_list = [] journal_search_kw_list = []
if group_by == 'ledger': if group_by == 'ledger':
if not ledger_obj_list: if not ledger_obj_list:
for ledger_relative_url, _ in context.AccountingTransactionModule_getLedgerItemList(): for _, ledger_relative_url in context.AccountingTransactionModule_getLedgerItemList():
ledger_obj_list.append(category_tool.ledger.restrictedTraverse(ledger_relative_url)) ledger_obj_list.append(category_tool.restrictedTraverse(ledger_relative_url))
search_kw['portal_type'] = portal.getPortalAccountingTransactionTypeList() search_kw['portal_type'] = portal.getPortalAccountingTransactionTypeList()
for ledger_obj in ledger_obj_list: for ledger_obj in ledger_obj_list:
...@@ -53,8 +53,8 @@ if group_by == 'ledger': ...@@ -53,8 +53,8 @@ if group_by == 'ledger':
elif group_by == 'portal_type_ledger': elif group_by == 'portal_type_ledger':
if not ledger_obj_list: if not ledger_obj_list:
for ledger_relative_url, _ in context.AccountingTransactionModule_getLedgerItemList(): for _, ledger_relative_url in context.AccountingTransactionModule_getLedgerItemList():
ledger_obj_list.append(category_tool.ledger.restrictedTraverse(ledger_relative_url)) ledger_obj_list.append(category_tool.restrictedTraverse(ledger_relative_url))
for ledger_obj in ledger_obj_list: for ledger_obj in ledger_obj_list:
for portal_type in portal.getPortalAccountingTransactionTypeList(): for portal_type in portal.getPortalAccountingTransactionTypeList():
......
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