[yaml_import] : For many2many field default value not stored (case : 574360)
bzr revid: dhs@tinyerp.com-20120619124849-ilnzi9r994hob5go
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user