[FIX] edi: In export_edi method, edi_struct should be have blank dict if None value

bzr revid: hmo@tinyerp.com-20110629101928-djc9hvlm0pmqm362
This commit is contained in:
Harry (OpenERP)
2011-06-29 15:49:28 +05:30
parent 3be8619d32
commit 784b6af17c
+2
View File
@@ -342,6 +342,8 @@ class edi(object):
if context is None:
context = {}
if edi_struct is None:
edi_struct = {}
_fields = self.fields_get(cr, uid, context=context)
fields_to_export = edi_struct and edi_struct.keys() or _fields.keys()
edi_dict_list = []