Skip to content

[18.0][FIX] website_form_require_legal: avoid overriding payment terms widget - #1206

Merged
OCA-git-bot merged 1 commit into
OCA:18.0from
Tecnativa:18.0-fix-website_form_require_legal
Jul 22, 2026
Merged

[18.0][FIX] website_form_require_legal: avoid overriding payment terms widget#1206
OCA-git-bot merged 1 commit into
OCA:18.0from
Tecnativa:18.0-fix-website_form_require_legal

Conversation

@pilarvargas-tecnativa

Copy link
Copy Markdown
Contributor

This widget is registered using the same TermsAndConditionsCheckbox name as the native website_sale widget, so it overrides the original implementation completely.

As a result, the change event of the terms and conditions checkbox in the checkout is no longer handled and the payment button is not enabled until the payment method is selected again.

This widget should use a different registry name so both implementations can coexist.

https://github.com/odoo/odoo/blob/06361cf46237623b8232252da2a3e7763cd28cbc/addons/website_sale/static/src/js/terms_and_conditions_checkbox.js#L6

@Tecnativa TT63742

@carlos-lopez-tecnativa @eduezerouali-tecnativa please review

@OCA-git-bot OCA-git-bot added series:18.0 mod:website_form_require_legal Module website_form_require_legal labels Jul 22, 2026
@pedrobaeza pedrobaeza added this to the 18.0 milestone Jul 22, 2026

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-1206-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 24616da into OCA:18.0 Jul 22, 2026
5 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 4deb31c. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza
pedrobaeza deleted the 18.0-fix-website_form_require_legal branch July 22, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants