Repository
OCA/web · module folder · Try on Runboat
Module version
1.0
Category
Tools
Folder size
0.47 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-07 06:56:10
Authors
Odoo Community Association (OCA), Therp BV
Maintainers
Odoo Community Association (OCA), Therp BV
Committers
Alexandre Fayolle, Holger Brunn, Stéphane Bidoul (ACSONE), OCA Transbot, Rudolf Schnapka, Stefan Rijnhart (Therp)
Odoo dependencies
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
None
Description
Introduction
------------

This addon allows users to apply set operations on filters: Remove or add
certain ids from/to a selection, but also to remove or add another filter's
outcome from/to a filter. This can be stacked, so the filter domain can be
arbitrarily complicated.

The math is hidden from the user as far as possible, in the hope it's still
user friendly.

Usage
-----

After this addon is installed, every list view shows a new menu 'Advanced
filters'. Here the set operations can be applied as necessary.

Caution
-------

Deinstalling this module will leave you with filters with empty domains. Use
this query before uninstalling to avoid that:

``alter table ir_filters rename domain_this to domain``
    

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
form_ir_filters_combine_with_existing ir.filters.combine.with.existing form New
form_ir_filters_save_new ir.filters form New
ir_filters_view_form ir.filters form Inherits base.ir_filters_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (4)
  • button_freeze(self, cr, uid, ids, context=None)
    evaluate the filter and write a fixed [('id', 'in', [])] domain
  • button_save(self, cr, uid, ids, context=None)
  • button_test(self, cr, uid, ids, context=None)
  • create(self, cr, uid, values, context=None)

New fields (0)

No new fields.

Public methods (1)
  • button_save(self, cr, uid, ids, context=None)