better error message

bzr revid: christophe@tinyerp.com-20080930131754-92b1go3t22yk7zmn
This commit is contained in:
Christophe Simonis 2008-09-30 15:17:54 +02:00
parent b2ff30334c
commit c5524c600c
1 changed files with 1 additions and 1 deletions

View 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)