Naresh(OpenERP) (nch-openerp) has assigned this bug to you for OpenERP GTK 
Client:

Using OpenERP 6.1-dev on Ubuntu 10.04

1) Steps to reproduce the issue
- Translate filters to use non-english characters (e.g. in croatian 'contains' 
= 'sadržava', '>' = 'veće od', etc.)
- Try to use localized filter, e.g. in Translations: name 'sadržava' aaa
2) Observed result:
Traceback (most recent call last):
  File "/home/user/gtk-client/openobject-client/bin/widget/screen/screen.py", 
line 231, in search_filter
    val = self.filter_widget and self.filter_widget.value or {}
  File "/home/user/gtk-client/openobject-client/bin/widget_search/form.py", 
line 440, in _value_get
    filters = x[0].value
  File 
"/home/user/gtk-client/openobject-client/bin/widget_search/custom_filter.py", 
line 115, in _value_get
    self.widget_obj.selected_oper = 
self.op_selection[self.widget_obj.selected_oper_text]
KeyError: 'sadr\xc5\xbeava'
3) Expected result:
- Filter works - no records found

Other specifics are not required, as the problem is in 
/bin/widget_search/custom_filter.py, in method _value_get, line 114:
        self.widget_obj.selected_oper_text = self.combo_op.get_active_text()
should be:
        self.widget_obj.selected_oper_text = 
unicode(self.combo_op.get_active_text())

because in the following line expected string 
(self.widget_obj.selected_oper_text) must be unicode:
        self.widget_obj.selected_oper = 
self.op_selection[self.widget_obj.selected_oper_text]

** Affects: openobject-client
     Importance: Medium
     Assignee: OpenERP sa GTK client R&D (openerp-dev-gtk)
         Status: Confirmed

-- 
Filter search - localization problem
https://bugs.launchpad.net/bugs/752531
You received this bug notification because you are a member of OpenERP sa GTK 
client R&D, which is a bug assignee.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to