[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.
This commit is contained in:
parent
fa17b86a9f
commit
5760a5d547
|
@ -165,9 +165,9 @@ class YamlInterpreter(object):
|
||||||
_, id = self.pool['ir.model.data'].get_object_reference(self.cr, self.uid, module, checked_xml_id)
|
_, id = self.pool['ir.model.data'].get_object_reference(self.cr, self.uid, module, checked_xml_id)
|
||||||
self.id_map[xml_id] = id
|
self.id_map[xml_id] = id
|
||||||
except ValueError:
|
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
|
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
|
return id
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue