[FIX] website: customize fails in a windows cmd
because python is unable to print unicode string to the terminal.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user