Commit 640f06b5 authored by Jérome Perrin's avatar Jérome Perrin

if gap_root is passed, we ignore account reference

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30878 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c9cf4e68
...@@ -61,7 +61,7 @@ preference_tool = context.getPortalObject().portal_preferences\n ...@@ -61,7 +61,7 @@ preference_tool = context.getPortalObject().portal_preferences\n
\n \n
number_method = preference_tool.getPreferredAccountNumberMethod()\n number_method = preference_tool.getPreferredAccountNumberMethod()\n
\n \n
if number_method == \'account_reference\':\n if number_method == \'account_reference\' and not gap_root:\n
reference = context.getReference()\n reference = context.getReference()\n
if reference:\n if reference:\n
return reference\n return reference\n
......
1066 1067
\ 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