diff --git a/web_advanced_filter/wizards/ir_filters_combine_with_existing.py b/web_advanced_filter/wizards/ir_filters_combine_with_existing.py index 285b16ae6f01..87ff5a83d0b1 100644 --- a/web_advanced_filter/wizards/ir_filters_combine_with_existing.py +++ b/web_advanced_filter/wizards/ir_filters_combine_with_existing.py @@ -18,7 +18,13 @@ class IrFiltersCombineWithExisting(models.TransientModel): domain = fields.Char('Domain', required=True) context = fields.Char('Context', required=True, default='{}') model = fields.Char('Model', required=True) - filter_id = fields.Many2one('ir.filters', 'Filter', required=True) + filter_id = fields.Many2one( + comodel_name='ir.filters', + string='Filter', + ondelete='cascade', + index=True, + required=True + ) @api.multi def button_save(self):