Wednesday, May 6, 2026
1 change · saas-18.4
Code cleanup and technical improvements
This change reorganizes how website builder plugins define which submit buttons should be excluded when saving snippets. It makes the behavior easier to maintain and lets related website features add their own rules without changing shared base logic.
Original PR description
\* = website, website_payment Previously submit button selectors were defined in a single hardcoded string in the save snippet logic. This made the list harder to maintain and required modifying the base code whenever a new plugin needed to exclude its submit button from being saved as a snippet. 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