Somesh Khare has proposed merging 
lp:~openerp-dev/openobject-client/6.0-opw-18150-skh into 
lp:openobject-client/6.0.

Requested reviews:
  Vo Minh Thu (OpenERP) (vmt-openerp)
Related bugs:
  Bug #872251 in OpenERP GTK Client: "[V6] remove carriage return on field of 
text type"
  https://bugs.launchpad.net/openobject-client/+bug/872251

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client/6.0-opw-18150-skh/+merge/81253

Hello VMT,

[Fix]: Remove carriage return on field of text type.

If you enter carriage return in the text field and you save though the GTK 
client. It removes the extra spaces from the GTK client.

Thanks
SKH
-- 
https://code.launchpad.net/~openerp-dev/openobject-client/6.0-opw-18150-skh/+merge/81253
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-client/6.0-opw-18150-skh.
=== modified file 'bin/widget/model/field.py'
--- bin/widget/model/field.py	2011-02-16 13:25:16 +0000
+++ bin/widget/model/field.py	2011-11-04 10:16:31 +0000
@@ -94,8 +94,6 @@
         return ok
 
     def set(self, model, value, test_state=True, modified=False):
-        if isinstance(value, basestring):
-            value = value.strip()
         model.value[self.name] = value
         if modified:
             model.modified = True

_______________________________________________
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