From e86aefb0a79b81ff4323b91e040887ce7aaac554 Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Fri, 11 Jan 2008 22:49:26 +0100 Subject: [PATCH] Fix: the error mesage wass using the missing field --- trytond/tools/convert.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trytond/tools/convert.py b/trytond/tools/convert.py index ad4a453bf1..624ec5b526 100644 --- a/trytond/tools/convert.py +++ b/trytond/tools/convert.py @@ -135,7 +135,8 @@ class RecordTagHandler: # Manage the top level tag if name == "record": self.model = self.mh.pool.get(attributes["model"].encode('utf8')) - assert self.model, "The model %s does not exist !" % (rec_model,) + assert self.model, "The model %s does not exist !" % \ + (attributes["model"],) self.xml_id = attributes["id"].encode('utf8')