[FIX] Do not search for model = table name in previous commit

bzr revid: stefan@therp.nl-20130626140439-3emprb4ewc2xlcsy
This commit is contained in:
Stefan Rijnhart 2013-06-26 16:04:39 +02:00
parent 126b49075d
commit 216f4d5e66
1 changed files with 1 additions and 1 deletions

View File

@ -1106,7 +1106,7 @@ class BaseModel(object):
def _get_xml_id(self, cr, uid, r):
model_data = self.pool.get('ir.model.data')
data_ids = model_data.search(cr, uid, [('model', '=', r._model._table), ('res_id', '=', r['id'])])
data_ids = model_data.search(cr, uid, [('model', '=', r._model._name), ('res_id', '=', r['id'])])
if len(data_ids):
d = model_data.read(cr, uid, data_ids, ['name', 'module'])[0]
if d['module']: