[FIX] Export : Correction made when selection field value if False.

bzr revid: ach@tinyerp.com-20100513090241-6gyslly3fleii1tf
This commit is contained in:
Anup (OpenERP) 2010-05-13 14:32:41 +05:30
parent 9830fb430f
commit 9f1015621b
1 changed files with 3 additions and 3 deletions

View File

@ -590,9 +590,9 @@ class orm_template(object):
cols = selection_field(self._inherits)
if cols and cols._type == 'selection':
sel_list = cols.selection
if type(sel_list) == type([]):
r = [x[1] for x in sel_list if r==x[0]][0]
if r and type(sel_list) == type([]):
r = [x[1] for x in sel_list if r==x[0]]
r = r and r[0] or False
if not r:
if f[i] in self._columns:
r = check_type(self._columns[f[i]]._type)