Repository
OCA/server-ux · module folder · Try on Runboat
Module version
1.0.0
Category
Usability
Folder size
0.25 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/server-ux
Last tracking update
2026-08-07 09:06:24
Authors
Odoo Community Association (OCA), Tecnativa, Amitaujas
Maintainers
Odoo Community Association (OCA), Tecnativa, Amitaujas
Committers
OCA-git-bot, sergio, oca-ci
Odoo dependencies
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
None
Description
This module allows to define custom filters in the search views for an
specific field belonging to the document or any other related document.

This nature makes the definition quite technical, but once done, it adds
the element in the UI for regular user use.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_ir_ui_custom_field_filter_form ir.ui.custom.field.filter list New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (2)
  • get_view(self, view_id=None, view_type='form', **options)
    @api.model
    Inject fields field in search views.
  • get_views(self, views, options=None)
    @api.model
    Inject fake field definition for having custom filters available.

New fields (6)
  • expression Char
    required=True
  • model_id Many2one → ir.model
    comodel_name='ir.model' ondelete='cascade' required=True
  • model_name Char
    index=True readonly=True related='model_id.model' store=True string='Model name'
  • name Char
    required=True translate=True
  • position_after Char
    help='Optional field name for putting the filter after that one. If empty or not found, it will be put at the end.'
  • sequence Integer
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…