Set ondelete_target CASCADE for groups on ir.ui.view
This commit is contained in:
1 parent
921c10e56e
commit
06f2ec3751
1 file changed
+1
-1
@@ -81,7 +81,7 @@ class UIMenu(OSV):
|
||||
childs = fields.One2Many('ir.ui.menu', 'parent','Childs')
|
||||
parent = fields.Many2One('ir.ui.menu', 'Parent Menu', select=1)
|
||||
groups = fields.Many2Many('res.group', 'ir_ui_menu_group_rel',
|
||||
'menu_id', 'gid', 'Groups')
|
||||
'menu_id', 'gid', 'Groups', ondelete_target='CASCADE')
|
||||
complete_name = fields.Function('get_full_name',
|
||||
string='Complete Name', type='char', order_field='name')
|
||||
icon = fields.Selection(ICONS, 'Icon')
|
||||
|
||||
Reference in new issue
Block a user