[FIX] Export : Correction made when selection field value if False.
bzr revid: ach@tinyerp.com-20100513090241-6gyslly3fleii1tf
This commit is contained in:
parent
9830fb430f
commit
9f1015621b
|
@ -590,9 +590,9 @@ class orm_template(object):
|
||||||
cols = selection_field(self._inherits)
|
cols = selection_field(self._inherits)
|
||||||
if cols and cols._type == 'selection':
|
if cols and cols._type == 'selection':
|
||||||
sel_list = cols.selection
|
sel_list = cols.selection
|
||||||
if type(sel_list) == type([]):
|
if r and type(sel_list) == type([]):
|
||||||
r = [x[1] for x in sel_list if r==x[0]][0]
|
r = [x[1] for x in sel_list if r==x[0]]
|
||||||
|
r = r and r[0] or False
|
||||||
if not r:
|
if not r:
|
||||||
if f[i] in self._columns:
|
if f[i] in self._columns:
|
||||||
r = check_type(self._columns[f[i]]._type)
|
r = check_type(self._columns[f[i]]._type)
|
||||||
|
|
Loading…
Reference in New Issue