Commit b1f501a8 authored by Vincent Pelletier's avatar Vincent Pelletier

A list is expected as return value.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13973 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 18969d59
......@@ -78,7 +78,7 @@
# Assumes that 2 currencies with the same ID, they are the same currency\n
if from_currency is not None and to_currency is not None and \\\n
[x for x in from_currency.split(\'/\') if x.strip()][-1] == [x for x in to_currency.split(\'/\') if x.strip()][-1]:\n
return 1\n
return [1]\n
\n
def sort_by_date(a, b):\n
if a.getStartDateRangeMin() > b.getStartDateRangeMin() :\n
......
48
103
\ 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