Convert unicode into str for strftime

This commit is contained in:
Cédric Krier
2008-11-04 18:09:55 +01:00
parent 5d97c9fd9c
commit a7186523a5
+1 -1
View File
@@ -193,7 +193,7 @@ class Currency(OSV):
lang = lang_obj.browse(cursor, user, lang_ids[0], context=context)
self.raise_user_error(cursor, 'no_rate', (name,
date.strftime(lang.date)), context=context)
date.strftime(str(lang.date))), context=context)
if round:
return self.round(cursor, user, to_currency,
amount * to_currency.rate / from_currency.rate)