projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f0fdbd
)
[FIX] Fields.function of type integer with multi attribute behaviour improved
author
Jay (Open ERP)
<jvo@tinyerp.com>
Fri, 2 Apr 2010 12:49:05 +0000
(18:19 +0530)
committer
Jay (Open ERP)
<jvo@tinyerp.com>
Fri, 2 Apr 2010 12:49:05 +0000
(18:19 +0530)
bzr revid: jvo@tinyerp.com-
20100402124905
-oqofyis9c7rr6fng
bin/osv/fields.py
patch
|
blob
|
history
diff --git
a/bin/osv/fields.py
b/bin/osv/fields.py
index
edf7815
..
980b3ad
100644
(file)
--- a/
bin/osv/fields.py
+++ b/
bin/osv/fields.py
@@
-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