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

make sure we don't use source_section_where_expression or...

make sure we don't use source_section_where_expression or destination_section_where_expression that could be stored in selection. This is for the test in r26586

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26587 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8fab3bd5
......@@ -59,6 +59,10 @@
kw[\'omit_input\'] = 0\n
kw[\'omit_output\'] = 0\n
\n
\n
kw[\'source_section_where_expression\'] = \'\'\n
kw[\'destination_section_where_expression\'] = \'\'\n
\n
if kw.get(\'operation_date\', {}).get(\'query\'):\n
buildSQLQuery = context.portal_catalog.buildSQLQuery\n
kw[\'source_section_where_expression\'] = buildSQLQuery(\n
......@@ -67,6 +71,7 @@ if kw.get(\'operation_date\', {}).get(\'query\'):\n
**{\'delivery.stop_date\': kw[\'operation_date\']})[\'where_expression\']\n
del kw[\'operation_date\']\n
\n
\n
return context.AccountingTransactionModule_zGetAccountingTransactionList( selection=None,\n
selection_params=kw,\n
stat=0,\n
......
......@@ -78,6 +78,8 @@ params[\'omit_input\'] = 0\n
params[\'omit_output\'] = 0\n
\n
\n
params[\'source_section_where_expression\'] = \'\'\n
params[\'destination_section_where_expression\'] = \'\'\n
\n
if params.get(\'operation_date\', {}).get(\'query\'):\n
buildSQLQuery = context.portal_catalog.buildSQLQuery\n
......
897
\ No newline at end of file
900
\ 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