[FIX] yaml import: not all views have a name

bzr revid: chs@openerp.com-20140127180230-eybz2dlc7qdjy1yh
This commit is contained in:
Christophe Simonis
2014-01-27 19:02:30 +01:00
parent 9518e6c323
commit eb091de615
+1 -1
View File
@@ -452,7 +452,7 @@ class YamlInterpreter(object):
"does not exist in the source view %r (of object "
"%r). This field will be ignored (and thus not "
"populated) when clients saves the new record" % (
key, match.group(1), view_info['name'], model._name
key, match.group(1), view_info.get('name', '?'), model._name
))
if key not in fields:
# do not shadow values explicitly set in yaml.