[FIX] uninstall: use ir_model.model instead of ir_model.name (the former is the model name while the later is not...).

bzr revid: vmt@openerp.com-20120607124156-p4xupmdjoi2vgunt
This commit is contained in:
Vo Minh Thu
2012-06-07 14:41:56 +02:00
parent 77ec840cb0
commit 83d799559c
@@ -47,7 +47,7 @@ class ir_model_constraint(Model):
ids.reverse()
to_unlink = []
for data in self.browse(cr, uid, ids, context):
model = data.model.name
model = data.model.model
model_obj = self.pool.get(model)
name = openerp.tools.ustr(data.name)
typ = data.type