Skip to content

[FIX] website: force color to o_cc1 for search menu#5027

Open
dtda-odoo wants to merge 8 commits intomaster-split-results-dtdafrom
master-split-results-dtda-design-mano
Open

[FIX] website: force color to o_cc1 for search menu#5027
dtda-odoo wants to merge 8 commits intomaster-split-results-dtdafrom
master-split-results-dtda-design-mano

Conversation

@dtda-odoo
Copy link

No description provided.

dtda-odoo and others added 8 commits February 17, 2026 14:22
*= 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 5 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.
  - Each group shows up to 6 results in quick search.
  - Groups are rendered in a fixed priority order:
  - Pages (website.page)
  - Products & Categories (product.template, product.public.category)
  - Events (event.event)
  - Appointments (appointment.type)
  - Blogs (blog.blog, blog.post)
  - Courses (slide.channel, slide.slide)
  - Jobs (hr.job)
  - Knowledge Articles (knowledge.article)
  - Forum (forum.forum, forum.post)

- 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>
Issue:
Arrow key navigation for search result items regressed with the
new search bar layout. The previous logic in onKeydown was no
longer triggered due to the updated DOM structure.

Fix:
Introduce a dedicated onSearchResultKeydown handler and wire it
to search result items. The new method restores ArrowUp and
ArrowDown focus management while keeping the existing input
keydown behavior unchanged.
Added a complete test case to cover arrow key navigation in
search results.

task-5424392

Co-authored-by: dtda-odoo <dtda@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
Drop redundant search templates and rely on a single template
for all scenarios.

This commit revert the keyboard nevigation stuff considering the
new layout.

Before this commit:
The search result display all the tags of the searched element
irrespective of the matched tag. If any of tag matches with the searched
term, all tags are displayed.

After this commit:
The tags are filtered to show only display the matched tag with searched
term; extra tags are not passed into result.

This commit removes the not used fields from
fetch_fields and mapping.

This commit cleans up search_type filter so that only necessary filters
are present in params

when search team is found in name or
search_meta_data, the description or tags fields are not displayed
also added descroiption in all models

Before this commit the search inside a `forum/*` pages
was not working.

Distribute a global result limit proportionally across groups
based on their contribution to the total results

task-5264317

Co-authored-by: Divyesh Vyas <divy@odoo.com>
Co-authored-by: dtda-odoo  <dtda@odoo.com>
@robodoo
Copy link

robodoo commented Feb 23, 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 8 times, most recently from ede3af7 to bb62eca Compare March 3, 2026 06:17
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.

5 participants