Fixed bug on function field if type is binary (ref:hmo)

bzr revid: hda@tinyerp.com-20081216085533-4jjo15livmuh9mbp
This commit is contained in:
Husen Daudi 2008-12-16 14:25:33 +05:30
parent 6d3c583545
commit ce70e60592
1 changed files with 3 additions and 0 deletions

View File

@ -602,6 +602,9 @@ class function(_column):
if store:
self._classic_read = True
self._classic_write = True
if type=='binary':
self._symbol_get=lambda x:x and str(x)
if type == 'float':
self._symbol_c = float._symbol_c
self._symbol_f = float._symbol_f