[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user