Commit 07496753 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Since sort_method can already exist in kw, we should update kw instead

of passing sort_method argument.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25300 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 146d990e
......@@ -76,12 +76,14 @@ def sort_by_date(a, b):\n
if movement is None:\n
return context.Resource_getPriceCalculationOperandDict(**kw)\n
else:\n
# sort_method can already exist in kw.
kw[\'sort_method\'] = sort_by_date\n
predicate_list = context.portal_domains.searchPredicateList(\n
context=movement,\n
portal_type=\'Currency Exchange Line\',\n
validation_state=\'validated\',\n
test =1,\n
sort_method=sort_by_date,**kw )\n
**kw )\n
\n
\n
\n
......
511
\ No newline at end of file
512
\ 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