Merge lp:~openerp-dev/openobject-client/6.0-opw-18150-skh into lp:openobject-client/6.0

Proposed by Somesh Khare
Status: Merged
Merge reported by: Olivier Laurent (Open ERP)
Merged at revision: not available
Proposed branch: lp:~openerp-dev/openobject-client/6.0-opw-18150-skh
Merge into: lp:openobject-client/6.0
Diff against target: 12 lines (+0/-2)
1 file modified
bin/widget/model/field.py (+0/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-client/6.0-opw-18150-skh
Reviewer Review Type Date Requested Status
Priyesh (OpenERP) (community) Approve
Vo Minh Thu Pending
Review via email: mp+81253@code.launchpad.net

Description of the change

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

To post a comment you must log in.
Revision history for this message
Priyesh (OpenERP) (pso-openerp) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/widget/model/field.py'
2--- bin/widget/model/field.py 2011-02-16 13:25:16 +0000
3+++ bin/widget/model/field.py 2011-11-04 10:16:31 +0000
4@@ -94,8 +94,6 @@
5 return ok
6
7 def set(self, model, value, test_state=True, modified=False):
8- if isinstance(value, basestring):
9- value = value.strip()
10 model.value[self.name] = value
11 if modified:
12 model.modified = True