[FIX] ir.ui.view: one2many to ir.model.data needs domain otherwise it matches entries from other models

bzr revid: odo@openerp.com-20140130120109-0z6kpzv5t155haog
This commit is contained in:
Olivier Dony 2014-01-30 13:01:09 +01:00
parent c231d9760a
commit 5bb31b70d8
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ class view(osv.osv):
help="ID of the view defined in xml file"),
'groups_id': fields.many2many('res.groups', 'ir_ui_view_group_rel', 'view_id', 'group_id',
string='Groups', help="If this field is empty, the view applies to all users. Otherwise, the view applies to the users of those groups only."),
'model_ids': fields.one2many('ir.model.data', 'res_id', auto_join=True),
'model_ids': fields.one2many('ir.model.data', 'res_id', domain=[('model','=','ir.ui.view')], auto_join=True),
}
_defaults = {
'priority': 16,