[IMP] boolean tests/checks
bzr revid: xmo@openerp.com-20110831122859-txaxld168x237v6t
This commit is contained in:
parent
dbbae75ed5
commit
5be7b90758
|
@ -1109,11 +1109,11 @@ class Export(View):
|
||||||
id = prefix + (prefix and '/'or '') + field_name
|
id = prefix + (prefix and '/'or '') + field_name
|
||||||
nm = name + (name and '/' or '') + field['string']
|
nm = name + (name and '/' or '') + field['string']
|
||||||
record = {'id': id, 'string': nm, 'children': [],
|
record = {'id': id, 'string': nm, 'children': [],
|
||||||
'field_type': field.get('type', False),
|
'field_type': field.get('type'),
|
||||||
'required': field.get('required', False)}
|
'required': field.get('required')}
|
||||||
records.append(record)
|
records.append(record)
|
||||||
|
|
||||||
if len(nm.split('/')) < 3 and field.get('relation'):
|
if len(nm.split('/')) < 3 and 'relation' in field:
|
||||||
if import_compat:
|
if import_compat:
|
||||||
ref = field.pop('relation')
|
ref = field.pop('relation')
|
||||||
cfields = self.fields_get(req, ref)
|
cfields = self.fields_get(req, ref)
|
||||||
|
|
Loading…
Reference in New Issue