summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Rochael Almeida <leorochael@gmail.com>2015-06-03 02:28:56 +0200
committerMartin Trigaux <mat@odoo.com>2015-09-28 17:15:37 +0200
commit5760a5d547bb1922b4faf4b9f5eed4e5e4bb0eda (patch)
tree26836b49cc91adeeb97743f4b761f7cb4e24e073
parentfa17b86a9f88942d33914904ba52ea737650ac1a (diff)
[IMP] YAML: Better Error message for bad xml_id
Use the original xml_id, which is present in the file, instead of the checked one.
-rw-r--r--openerp/tools/yaml_import.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openerp/tools/yaml_import.py b/openerp/tools/yaml_import.py
index a910b6c9999..9393e836a6d 100644
--- a/openerp/tools/yaml_import.py
+++ b/openerp/tools/yaml_import.py
@@ -165,9 +165,9 @@ class YamlInterpreter(object):
_, id = self.pool['ir.model.data'].get_object_reference(self.cr, self.uid, module, checked_xml_id)
self.id_map[xml_id] = id
except ValueError:
- raise ValueError("""%s not found when processing %s.
+ raise ValueError("""%r not found when processing %s.
This Yaml file appears to depend on missing data. This often happens for
- tests that belong to a module's test suite and depend on each other.""" % (checked_xml_id, self.filename))
+ tests that belong to a module's test suite and depend on each other.""" % (xml_id, self.filename))
return id