Daily updates from Odoo
Monday, January 13, 2025
1 change · 18.0
Code cleanup and technical improvements
This change removes an unnecessary naming option from website tour setup, making the underlying tour system simpler to maintain. It should not change the user experience, aside from keeping the homepage tour behavior intact through a cleaner implementation.
Original PR description
In this commit, in order to simplify the tours API, we remove the saveAs attribute from the tour object definition. This attribute does not bring anything in the sense that it just allows not to create in the registry a tour that could already exist and to save it under another name to have access to it from tour_service. To avoid the error of creating a key that already exists in the registry, simply remove it before adding it again. This is only used in the website module for the homepage tour. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr