Error selecting attachment files with non ascii chars in windows os
In windows os, when try to select a file to attach that has non ascii chars it raises:
ERROR:tryton.common.common:Traceback (most recent call last):
File "C:\ciati\tryton\tryton\gui\window\view_form\view\list_gtk\widget.py", line 475, in select_binary
field.set_client(record, open(filename, 'rb').read())
IOError: [Errno 2] No such file or directory: 'Z:\\term\xc3\xb3metro'
I think the problem is related to the "File Names and Encodings" section of http://www.pygtk.org/pygtk2reference/class-gtkfilechooser.html
Adding unicode to select_binary method fixes the error:
filename = unicode(file_selection(_('Open...')))