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:
2c246ae
)
[FIX] allow function fields to be used in osv_memory objects
author
Christophe Simonis
<christophe@tinyerp.com>
Fri, 27 Mar 2009 12:56:20 +0000
(13:56 +0100)
committer
Christophe Simonis
<christophe@tinyerp.com>
Fri, 27 Mar 2009 12:56:20 +0000
(13:56 +0100)
bzr revid: christophe@tinyerp.com-
20090327125620
-eise393e763ohrry
bin/osv/fields.py
patch
|
blob
|
history
diff --git
a/bin/osv/fields.py
b/bin/osv/fields.py
index
bfd1ade
..
7f8836d
100644
(file)
--- a/
bin/osv/fields.py
+++ b/
bin/osv/fields.py
@@
-626,12
+626,14
@@
class function(_column):
# convert the data returned by the function with the size of that data...
res = dict(map(lambda (x, y): (x, tools.human_size(len(y or ''))), res.items()))
return res
+ get_memory = get
def set(self, cr, obj, id, name, value, user=None, context=None):
if not context:
context = {}
if self._fnct_inv:
self._fnct_inv(obj, cr, user, id, name, value, self._fnct_inv_arg, context)
+ set_memory = set
# ---------------------------------------------------------
# Related fields