[FIX] website: customize fails in a windows cmd

because python is unable to print unicode string to the terminal.
This commit is contained in:
Antony Lesuisse
2015-04-23 21:19:46 +02:00
parent 241717b4f1
commit 269badc42a
+2 -2
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# -*- coding: ascii -*-
import copy
import logging
@@ -43,7 +43,7 @@ class view(osv.osv):
# Try to fallback on key instead of xml_id
rec_id = self.search(cr, uid, [('key', '=', view_id)], context=context)
if rec_id:
_logger.info("Could not find view with `xml_id´ '%s', fallback on `key´" % (view_id))
_logger.info("Could not find view with `xml_id' '%s', fallback on `key'" % (view_id))
return self.browse(cr, uid, rec_id, context=context)[0]
else:
raise