Somesh Khare(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-client/6.0-opw-572573-skh 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-572573-skh/+merge/96745

Hello Sir,

[Fix]: Back-ported from Trunk GTK-Client Revision:2010. 

Issue: Create a partner with like x. Now Save it.
Add at the end of the partner name add the character like: ‘àààà’.

See the name.

This branch fixes this issue.

Kindly review the branch and Please share your view on it.

Thanks,
Somesh Khare
-- 
https://code.launchpad.net/~openerp-dev/openobject-client/6.0-opw-572573-skh/+merge/96745
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-client/6.0-opw-572573-skh.
=== modified file 'bin/widget/view/form_gtk/char.py'
--- bin/widget/view/form_gtk/char.py	2010-12-21 09:58:49 +0000
+++ bin/widget/view/form_gtk/char.py	2012-03-09 11:22:19 +0000
@@ -21,7 +21,7 @@
 
 import gettext
 import gtk
-
+import tools
 import common
 import interface
 
@@ -41,7 +41,9 @@
         self.widget.connect('focus-out-event', lambda x,y: self._focus_out())
 
     def set_value(self, model, model_field):
-        return model_field.set_client(model, (self.widget.get_text()).strip() or False)
+        value = tools.ustr(self.widget.get_text()).strip()
+        value = value.decode('utf-8')
+        return model_field.set_client(model, value or False)
 
 
     def display(self, model, model_field):

_______________________________________________
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