From a7186523a55afa8a157afcba75f2ff0514d60dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 4 Nov 2008 18:09:55 +0100 Subject: [PATCH] Convert unicode into str for strftime --- currency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/currency.py b/currency.py index f4adfe1147..f239fb17e4 100644 --- a/currency.py +++ b/currency.py @@ -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)