Wednesday, March 20, 2024
1 change · saas-17.2
Resolved issues and error corrections
This fix stops the web interface from running the same server action more than once when it appears multiple times in the navigation path. Users should see more consistent breadcrumb labels and avoid duplicate action processing when navigating back to list views.
Original PR description
Since [1], when a server action is found in the url, it will be executed to retrieve the window action when is the current action. If the server action is found in multiple places in the url, it will be executed each time it becomes the current action. For instance, /crm/12, will execute the server action crm to retrieve the window action at the first load, and the same server action will be executed again when clicking on the breadcrumb to go back to the multi-record view. Now, After the first execution of the server action, all the same server actions found in the controller stack (breadcrumb) will be replaced with the resultant window action. This is to avoid executing multiple times the same server action. Note that, this will also use the correct display name on the breadcrumb, the one of the window action. [1] https://github.com/odoo/odoo/commit/c63d14a0485a553b74a8457aee158384e9ae6d3f