Friday, May 15, 2026
2 changes · 17.0
Resolved issues and error corrections
This update resolves an issue where the SD Worx report would fail when generating data for employees without working schedules. The fix ensures the report gracefully handles cases where an employee isn't found, preventing errors and ensuring accurate report generation. This improves the reliability of payroll reporting.
Original PR description
## Steps to reproduce: - Install l10n_be_hr_payroll_sd_worx module - Create a public holiday in one company without a working schedule - Create an employee that doesn't have a working schedule nor a contract - Try to generate the sd worx report - A traceback will pop-up ## Cause: Since we fetch all employees if we have a public holiday with no schedule, this puts us in a scenario where we try to access a key in that doesn't exist and it will trigger a KeyError ## Fix: Make sure we fallback on an empty recordset in case we don't have the employee in the key list of the dict we are checking opw-5500070
This update clarifies how Helpdesk articles are searched, particularly when a non-root article is selected as the main article. The team has addressed an issue where searching didn't include descendant articles and a related problem with dropdown behavior. The solution focuses on improving user guidance rather than a technical fix.
Original PR description
*: website_helpdesk_knowledge Steps to reproduce: --- - Install Helpdesk/Knowledge/Website apps - Go to Knowledge - Set up a Knowledge workspace root article with some child articles to it - Go to…
*: website_helpdesk_knowledge
Steps to reproduce:
---
- Install Helpdesk/Knowledge/Website apps
- Go to Knowledge
- Set up a Knowledge workspace root article with some child articles to it
- Go to Helpdesk > Configuration > Helpdesk Teams
- Open a Helpdesk team, and go to its Help Center config
- Check Knowledge and set a non-root article as main Article
- Go to Website > Help
- First issue (non-root main article):
- Type a word which is present in both the article and one of its child articles
- Only the given article match the word
- If you use the root article it will match in any descendant
- Second issue (in every case):
- Type a word in the search bar
- Wait for the dropdown to appear
- Click elsewhere, dropdown is properly hidden
- Try to change the search > Traceback
Issue:
---
The domain used to find the articles to match the search uses the current id
as the `root_article_id``:
`['|', ('id', '=', team_article.id), ('root_article_id', '=', team_article.id)],`
which was previously working in every case as it was not possible to set
a non-root article in the team setting.
This was later changed to allow any article as the default website page.
As a result, when a non-root article is selected, the search domain only
applies to that specific article and no longer includes its descendants.
The other issue is related to the added boostrap attribute `data-bs-toggle="dropdown"`
which is not properly reset when the dropdown is removed, and triggers the creation
of an empty dropdown.
Fix:
---
Doesn't seem easy to fix to allow the search on all the descendants of
the given article as we can't use the article `root_article_id` and filter out
the unwanted results in a clean way (and it doesn't seem doable with a direct domain).
Instead clarify the situation in the help of the article.
Also manually reset the attribute when there is no results.
Backport of https://github.com/odoo/enterprise/pull/107438
task - 5360265