Commit 610afaff authored by Jérome Perrin's avatar Jérome Perrin

Always try to get section_uid from section_category by default. This is faster...

Always try to get section_uid from section_category by default. This is faster and prevent using Persons as section uids.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16712 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 312976df
...@@ -115,7 +115,7 @@ if at_date:\n ...@@ -115,7 +115,7 @@ if at_date:\n
section_category = selection_params.get(\'section_category\',\n section_category = selection_params.get(\'section_category\',\n
preference.getPreferredAccountingTransactionSectionCategory())\n preference.getPreferredAccountingTransactionSectionCategory())\n
if section_category:\n if section_category:\n
params[\'section_category\'] = section_category\n params[\'section_uid\'] = context.Base_getSectionUidListForSectionCategory(section_category)\n
currency = context.Base_getCurrencyForSection(section_category)\n currency = context.Base_getCurrencyForSection(section_category)\n
# getQuantityPrecisionFromResource is defined on Base, but the portal is not \n # getQuantityPrecisionFromResource is defined on Base, but the portal is not \n
# an instance of Base, so we call it on account_module.\n # an instance of Base, so we call it on account_module.\n
......
421 422
\ 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