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

stop using getPortalDefaultGapRoot

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26922 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d4f80e96
...@@ -78,8 +78,8 @@ def getGapItemList(only_preferred_gap): \n ...@@ -78,8 +78,8 @@ def getGapItemList(only_preferred_gap): \n
ctool = context.getPortalObject().portal_categories\n ctool = context.getPortalObject().portal_categories\n
if only_preferred_gap:\n if only_preferred_gap:\n
gap_root = context.getPortalObject().portal_preferences\\\n gap_root = context.getPortalObject().portal_preferences\\\n
.getPreferredAccountingTransactionGap() or\\\n .getPreferredAccountingTransactionGap()\n
context.getPortalDefaultGapRoot()\n if gap_root:\n
return ctool.resolveCategory(gap_root).getCategoryChildItemList(\n return ctool.resolveCategory(gap_root).getCategoryChildItemList(\n
base=0, is_self_excluded=1, display_method=display, sort_method=sort)\n base=0, is_self_excluded=1, display_method=display, sort_method=sort)\n
\n \n
......
920 921
\ No newline at end of file \ No newline at end of file
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