better error message
authorChristophe Simonis <christophe@tinyerp.com>
Tue, 30 Sep 2008 13:17:54 +0000 (15:17 +0200)
committerChristophe Simonis <christophe@tinyerp.com>
Tue, 30 Sep 2008 13:17:54 +0000 (15:17 +0200)
bzr revid: christophe@tinyerp.com-20080930131754-92b1go3t22yk7zmn

bin/addons/base/ir/ir_model.py

index 1bb1fea..0a9f71b 100644 (file)
@@ -369,7 +369,7 @@ class ir_model_data(osv.osv):
 
     def _get_id(self,cr, uid, module, xml_id):
         ids = self.search(cr, uid, [('module','=',module),('name','=', xml_id)])
-        assert len(ids)==1, '%d reference(s) to %s. You should have one and only one !' % (len(ids),xml_id)
+        assert len(ids)==1, '%d reference(s) to %s.%s. You should have one and only one !' % (len(ids), module, xml_id)
         return ids[0]
     _get_id = tools.cache()(_get_id)