[FW][FIX] website: prevent website search box cache
Current behavior before commit:
When making a search through /website/search, the website_search_box
view is cached. This includes the search term and the search count.
Therefore when a user makes a search, a previous search term might be
displayed. It may even be a search that another user made.
This bug appeared since the search bar has been added to header
templates 7559626.
Description of the fix:
Add t-nocache to the whole searchbox so that the search term and the
search count is updated with each search.
Steps to reproduce the issue in local: (For the issue to appear consistently everytime there should be only a single worker)
- Click on the search button in the website header and make a search
- Do the same thing again with another search
- Click again on the search button
The previous search term is shown inside the searchbar
opw-4114511
Forward-Port-Of: odoo/odoo#180548
This PR targets saas-17.2 and is part of the forward-port chain. Further PRs will be created up to master.
More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port
