[FIX] Do not search for model = table name in previous commit
bzr revid: stefan@therp.nl-20130626140439-3emprb4ewc2xlcsy
This commit is contained in:
parent
126b49075d
commit
216f4d5e66
|
@ -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']:
|
||||
|
|
Loading…
Reference in New Issue