better error message
bzr revid: christophe@tinyerp.com-20080930131754-92b1go3t22yk7zmn
This commit is contained in:
parent
b2ff30334c
commit
c5524c600c
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue