Friday, May 15, 2026
1 change · 19.0
Code cleanup and technical improvements
This update centralizes how website-related plugins define which submit buttons should be handled specially in the page builder. It makes future changes easier and reduces the need to alter core code when adding or updating plugins.
Original PR description
\* = website, website_mass_mailing, website_payment Previously submit button selectors were hard coded in multiple places (e.g. save snippet and clone logic). This made the list harder to maintain and required modifying the base code whenever a new plugin needed to exclude its submit button. Introduce a resource allowing plugins to register their own submit button selectors. Plugins can now extend this list directly from their code without modifying the base implementation. This makes the logic easier to maintain and provides a reusable extension point for other submit-button related behaviors in plugins. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#252679