From 931c2376862f1064aafaecd044712465e394bb9e Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 19 Apr 2012 15:02:45 +0200 Subject: [PATCH] [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 --- openerp/osv/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/osv/fields.py b/openerp/osv/fields.py index 95aecf18ec6..4364c0f985e 100644 --- a/openerp/osv/fields.py +++ b/openerp/osv/fields.py @@ -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):