Issue:
- The course filtering feature was consistently providing incorrect
results, showing courses that were not related to the selected tags.
This issue did not appear when logged in as an admin user.
Steps to reproduce:
- Install the eLearning app.
- Navigate to the 'Courses' section on the website.
- Click on a tag to filter the displayed courses.
- Select additional tags to further filter the courses.
- Observe that the results may not correspond to the selected tags.
Solution:
- This inconsistency was caused by the t-cache directive in the template,
which cached parts of the page and didn't always reflect the latest
user interactions, like changing the selected tags.
- Modify the t-cache directive so that it caches the content only when
there are no search tags
opw-3636565
closesodoo/odoo#149197
X-original-commit: 3e0e3b2ea89639f1521335c36b11356e7b31ba4b
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Kawtar Drissi El Bouzaidi (kdeb) <kdeb@odoo.com>