Skip to content

Master split results dtda next 4 dtda#5039

Open
dtda-odoo wants to merge 9 commits intomaster-split-results-dtdafrom
master-split-results-dtda-next-4-dtda
Open

Master split results dtda next 4 dtda#5039
dtda-odoo wants to merge 9 commits intomaster-split-results-dtdafrom
master-split-results-dtda-next-4-dtda

Conversation

@dtda-odoo
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Mar 3, 2026

This PR targets the un-managed branch odoo-dev/odoo:master-split-results-dtda, it needs to be retargeted before it can be merged.

@divy-odoo divy-odoo force-pushed the master-split-results-dtda branch 2 times, most recently from d10e0bd to 538b8a2 Compare March 12, 2026 14:42
dtda-odoo and others added 6 commits March 13, 2026 12:24
*= portal_rating, test_website, website_blog, website_event,
website_event_exhibitor, website_event_track, website_forum,
website_hr_recruitment, website_sale, website_slides

This commit refactors website search templates across all entry points
(header search, snippets, per-model search) to replace the single
combined result list (max 6 items) with group-based, per-model results,
providing structured result grouping, predictable ordering, and a
cleaner foundation for model-specific templates and data handling.

This commit:
- Introduce grouped search architecture:
  - Each group is self-contained with metadata, template, and data.
  - Display max 30 results proportionally devided to each group
  - Groups are rendered in a fixed priority order

- Introduce a dedicated full search page:
  - Displays up to 24 results per group.
  - Supports incremental loading via Load more.

- Make search rendering model-driven and template-based, removing the
previously enforced fixed field mapping (icon, image, name,
description, details) so each model fully controls what data is sent,
how it is rendered, and can expose any number of fields with custom
mappings when field - semantics differ.

Redesign search response payload to a group-centric JSON structure:
```json
{
  "results": {
    "<group_key>": {
      "groupName": "<string>",
      "templateKey": "<qweb_template>",
      "searchCount": <int>,
      "data": []
    }
  },
  "results_count": <int>,
  "parts": {
    "<field_name>": true
  },
  "fuzzy_search": <bool>
}
```
task-5264317

Co-authored-by: Divyesh Vyas <divy@odoo.com>
*: portal, test_website,website, website_blog, website_event,
website_event_exhibitor, website_event_track, website_forum,
website_hr_recruitment, website_sale, website_slides

The goal is to declutter the search result, showing a consistent list
with only the necessary information.

task-5431465
When performing a search the results takes a bit of time to render, it
was necessary to provide feedback to the user that the search went
through. A skeleton loader provides feedback while previewing the
upcoming result.

task-5431465
*: website_blogs, website_forum, website_sale, website_slides

+ website_slides don't show slide_slide in local search
+ website_sale remove categories from product search

task-5431465
*: website,website_blog, website_event,website_event_exhibitor,
website_event_track, website_forum, website_hr_recruitment,
website_sale, website_slides

- Switch search to dialog when suitable
- Improve search feedback with the dynamic submit button
- Simplify search input designs
- Review each call of the search_input template to ensure consistency

task-5431465
- Consolidate redundant search templates into a single template for all scenarios.
- Revert keyboard navigation changes to align with the new layout.
- Filter tags in search results to display only those matching the search term
  (previously, all tags were shown if any matched).
- Remove unused fields from fetch_fields and their corresponding mappings.
- Clean up search_type filters to include only necessary parameters.
- When a search term matches the name or search_meta_data, hide description and tag fields.
- Fix search functionality within forum/* pages.
- Distribute the global result limit proportionally across result groups based
  on their contribution to total matches.

task-5264317

Co-authored-by: Divyesh Vyas <divy@odoo.com>
Co-authored-by: dtda-odoo  <dtda@odoo.com>
@divy-odoo divy-odoo force-pushed the master-split-results-dtda branch from 538b8a2 to f1a717e Compare March 13, 2026 06:55
@divy-odoo divy-odoo force-pushed the master-split-results-dtda branch from f1a717e to cb0d795 Compare March 13, 2026 09:24
@dtda-odoo dtda-odoo force-pushed the master-split-results-dtda-next-4-dtda branch from 5bfe2b8 to 1aa56c0 Compare March 13, 2026 09:30
@divy-odoo divy-odoo force-pushed the master-split-results-dtda branch 9 times, most recently from 8b66713 to 683c168 Compare March 20, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants