=== modified file 'bin/widget/view/form_gtk/char.py' --- bin/widget/view/form_gtk/char.py 2010-07-16 05:41:32 +0000 +++ bin/widget/view/form_gtk/char.py 2010-08-10 10:29:31 +0000 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (). # @@ -15,7 +15,7 @@ # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## @@ -41,8 +41,8 @@ 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() or False) - + return model_field.set_client(model, (self.widget.get_text()).strip() or False) + def display(self, model, model_field): if not model_field: