Ravi Gohil (OpenERP) has proposed merging
lp:~openerp-dev/openobject-client/6.0-opw-574052-rgo into
lp:openobject-client/6.0.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client/6.0-opw-574052-rgo/+merge/105035
Hello,
Custom filter does not work with windows GTK-Client when we filter records
having accented characters.
Steps to Reproduce(Windows GTK-Client):
1) Load another translation say for example FR_BE,
2) GOTO Project -> Projects and filter records on 'Statut' field for closed
projects(with value Fermé),
You will also have in result the projects which are not in closed state.
This MP contains fix for this issue, Kindly review it.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-client/6.0-opw-574052-rgo/+merge/105035
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client/6.0-opw-574052-rgo.
=== modified file 'bin/widget_search/custom_filter.py'
--- bin/widget_search/custom_filter.py 2011-10-19 07:30:33 +0000
+++ bin/widget_search/custom_filter.py 2012-05-08 07:26:19 +0000
@@ -149,7 +149,7 @@
right_text_se = self.right_text.get_text()
keys = []
for selection in self.field_selection[self.combo_fields.get_active_text()][2]:
- if selection[1].lower().find(right_text_se.lower()) != -1:
+ if (selection[1].decode('utf-8')).lower().find((right_text_se.decode('utf-8')).lower()) != -1:
keys.append(selection[0])
right_text = keys
if operator in ['ilike','=','in']:
_______________________________________________
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