[FIX] previous fix: actual module should be __builtin__

apparently we do weird things with __builtins__, on my machine it's consistently an alias to the __builtin__ importable module, but in the server it's a dict

bzr revid: xmo@openerp.com-20120419130245-ael83wc5h310m38s
This commit is contained in:
Xavier Morel 2012-04-19 15:02:45 +02:00
parent 8f5c30c7e9
commit 931c237686
1 changed files with 1 additions and 1 deletions

View File

@ -1057,7 +1057,7 @@ class function(_column):
# This is not needed for stored fields and non-functional integer
# fields, as their values are constrained by the database backend
# to the same 32bits signed int limit.
result = __builtins__.float(value)
result = __builtin__.float(value)
return result
def get(self, cr, obj, ids, name, uid=False, context=None, values=None):