Daily updates from Odoo
Wednesday, October 8, 2025
1 change · 19.0
Code cleanup and technical improvements
This update reorganizes how embedded action settings are managed so they are easier to maintain and less prone to mistakes. It also adds automated checks to help ensure project-related settings are copied, removed, saved, and retrieved correctly.
Original PR description
In this PR, we rework the embedded actions settings logic in the control panel, to use a "pure" class that contains all the state and logic related to these settings. We also rework the `ResUserSettings` mock model in `web` to make it generic and use it in other modules, like in `mail`. Finally, we add Python tests to ensure the correct behavior of the embedded actions settings when copying/removing projects and when setting/getting those settings from the DB (check validity of fields and correctness). We also add some checks in the JS tests to ensure that the embedded actions settings are correctly set. task-5003800 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr