Commit 8022f528 authored by Jérome Perrin's avatar Jérome Perrin

r24856 was not falling back to gap id correctly. fix this

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25476 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 82e524fb
......@@ -66,16 +66,13 @@ if number_method == \'account_reference\':\n
if reference:\n
return reference\n
\n
# elif number_method == \'gap_id\':\n
else:\n
# GAP id is the default rendering\n
\n
current_gap = preference_tool.getPreferredAccountingTransactionGap()\n
\n
for gap in context.getGapValueList() : \n
if current_gap in gap.getPath() : \n
return gap.getReference() or gap.getId()\n
return \'\'\n
## elif number_method == \'gap_id\':\n
# GAP id is the default rendering\n
current_gap = preference_tool.getPreferredAccountingTransactionGap() or \'\'\n
for gap in context.getGapValueList(): \n
if current_gap in gap.getPath(): \n
return gap.getReference() or gap.getId()\n
return \'\'\n
</string> </value>
</item>
<item>
......
861
\ No newline at end of file
862
\ 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