From eb091de61517a7e6ba1720add706c06d09de7be8 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 27 Jan 2014 19:02:30 +0100 Subject: [PATCH] [FIX] yaml import: not all views have a name bzr revid: chs@openerp.com-20140127180230-eybz2dlc7qdjy1yh --- openerp/tools/yaml_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/tools/yaml_import.py b/openerp/tools/yaml_import.py index 58ff7cf84a0..10c3663c173 100644 --- a/openerp/tools/yaml_import.py +++ b/openerp/tools/yaml_import.py @@ -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.