Skip to content

[18.0][IMP] base_custom_filter: add configurable insertion point for filter groups, etc.#1220

Open
yostashiro wants to merge 4 commits intoOCA:18.0from
qrtl:18.0-imp-base_custom_filter
Open

[18.0][IMP] base_custom_filter: add configurable insertion point for filter groups, etc.#1220
yostashiro wants to merge 4 commits intoOCA:18.0from
qrtl:18.0-imp-base_custom_filter

Conversation

@yostashiro
Copy link
Copy Markdown
Member

@yostashiro yostashiro commented Jan 18, 2026

  • Add insert_xpath, insert_position, and separator_position fields to control filter placement in search views
  • Fix custom filters appearing under Favorites
  • Fix custom filters not showing when //search/filter node didn't exist
  • Make ir.filters name field translatable
  • Add date filter support

@qrtl QT6218

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @ForgeFlow, @AshishHirapara,
some modules you are maintaining are being modified, check this out!

@yostashiro
Copy link
Copy Markdown
Member Author

The main improvement: we now have better control over where the custom filters should show.

image

Copy link
Copy Markdown
Contributor

@AungKoKoLin1997 AungKoKoLin1997 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown

@kanda999 kanda999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functional review: it works as expected in runboat

@AungKoKoLin1997
Copy link
Copy Markdown
Contributor

I added a new commit to allow creation of date filters.

@SanamiK
Copy link
Copy Markdown

SanamiK commented Apr 8, 2026

Functional review. LGTM
スクリーンショット 2026-04-09 091507
スクリーンショット 2026-04-09 091532

Replace context-based filtering in get_filters() with post-filtering
approach that excludes non-favorite filter types from results, preventing
custom filters from appearing in the Favorites section.
@yostashiro yostashiro force-pushed the 18.0-imp-base_custom_filter branch from 2cb6d46 to fa5ef41 Compare April 9, 2026 01:03
yostashiro and others added 2 commits April 9, 2026 01:10
… groups

- Add insert_xpath, insert_position, and separator_position fields to
  ir.filters.group for controlling filter placement in search views
- Support XPath-based targeting with customizable separator placement
- Add XPath syntax validation constraint
- Refactor filter/groupby insertion with fallback node resolution so
  custom filters work even when //search/filter node doesn't exist
Allow creation of date filters with automatic period options
(Today, This Week, This Month, This Quarter, This Year).

Users can now select a date/datetime field when creating Standard
Filters as an alternative to domain-based filtering.
@yostashiro yostashiro force-pushed the 18.0-imp-base_custom_filter branch from fa5ef41 to 372ce79 Compare April 9, 2026 01:11
@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@yostashiro yostashiro changed the title [18.0][IMP] base_custom_filter: add configurable insertion point for filter groups [18.0][IMP] base_custom_filter: add configurable insertion point for filter groups, etc. Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants