Merge lp:~openerp-dev/openobject-server/trunk-bug-1128997-sunil into lp:openobject-server

Proposed by Sunil Sharma(OpenERP)
Status: Work in progress
Proposed branch: lp:~openerp-dev/openobject-server/trunk-bug-1128997-sunil
Merge into: lp:openobject-server
Diff against target: 12 lines (+1/-1)
1 file modified
openerp/osv/fields.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-server/trunk-bug-1128997-sunil
Reviewer Review Type Date Requested Status
Vo Minh Thu (community) Needs Information
Review via email: mp+152140@code.launchpad.net
To post a comment you must log in.
4818. By Sunil Sharma(OpenERP)

[FIX] many2one to change _symbol_f = lambda x: int(x or 0)

Revision history for this message
Vo Minh Thu (thu) :
review: Needs Information

Unmerged revisions

4818. By Sunil Sharma(OpenERP)

[FIX] many2one to change _symbol_f = lambda x: int(x or 0)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openerp/osv/fields.py'
2--- openerp/osv/fields.py 2013-01-11 17:57:17 +0000
3+++ openerp/osv/fields.py 2013-03-07 10:48:19 +0000
4@@ -437,7 +437,7 @@
5 _classic_write = True
6 _type = 'many2one'
7 _symbol_c = '%s'
8- _symbol_f = lambda x: x or None
9+ _symbol_f = lambda x: int(x or 0)
10 _symbol_set = (_symbol_c, _symbol_f)
11
12 def __init__(self, obj, string='unknown', auto_join=False, **args):