[yaml_import] : For many2many field default value not stored (case : 574360)

bzr revid: dhs@tinyerp.com-20120619124849-ilnzi9r994hob5go
This commit is contained in:
DHS (OpenERP)
2012-06-19 18:18:49 +05:30
parent 5973022a95
commit 05b1ef36b8
+5
View File
@@ -374,6 +374,11 @@ class YamlInterpreter(object):
val = []
if len(val) and type(val[0]) == dict:
val = map(lambda x: (0,0,x), val)
elif (fg[key]['type']=='many2many'):
if val is False:
val = []
if len(val):
val = map (lambda x: [6,0,[x]], val)
return val
# Process all on_change calls