[FIX] Fields.function of type integer with multi attribute behaviour improved

bzr revid: jvo@tinyerp.com-20100402124905-oqofyis9c7rr6fng
This commit is contained in:
Jay (Open ERP)
2010-04-02 18:19:05 +05:30
parent 9f0fdbdc52
commit 32d41097f6
+5 -1
View File
@@ -699,7 +699,11 @@ class function(_column):
if self._type == "integer":
for r in res.keys():
# Converting value into string so that it does not affect XML-RPC Limits
res[r] = str(res[r])
if isinstance(res[r],dict): # To treat integer values with _multi attribute
for record in res[r].keys():
res[r][record] = str(res[r][record])
else:
res[r] = str(res[r])
return res
get_memory = get