Sunday, October 12, 2025
2 changes · 19.0
Resolved issues and error corrections
This fix prevents hierarchy views from crashing or looping endlessly when records accidentally reference themselves or form circular relationships. It improves reliability for organization charts and other hierarchy displays, especially in edge cases such as an employee being set as their own manager.
Original PR description
This commit fixes some traceback errors in the web_hierarchy module by refining the cycle detection of records in hierarchies. Infinite loops in case of a cycle's presence in the `removeChildNodes` and `processNode` methods are now prevented. Additionally, tree re-rooting in case of the presence of two nodes in the same tree, which implies a cycle's existence, is now avoided. There was an edge case where an employee could be their own manager, creating two child nodes of that employee. The case is now handled by making sure that records are unique for each parent ID in the `recordsPerParentId` object. task-5022670 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#231040 Forward-Port-Of: odoo/odoo#228976
This pull request brings several user-facing fixes across point of sale, inventory, messaging, eCommerce, CRM, and local accounting workflows. It also adds expanded Turkish e-invoicing support and refreshes translations, improving reliability, compliance, and day-to-day usability for affected businesses.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr