Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][IMP] website_form_require_legal: Set link to terms and conditions #1025

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

pilarvargas-tecnativa
Copy link

Improve the template by allowing to set the URL when rendering the qweb template by setting a value for the termsURL variable by context.

cc @Tecnativa TT40305

@pedrobaeza @chienandalu please review

@pedrobaeza pedrobaeza added this to the 15.0 milestone Dec 13, 2023
@@ -35,7 +35,6 @@ odoo.define("website_form_require_legal.form_editor", function (require) {
$(template).html(
qweb.render("website_form_require_legal.s_website_form_legal", {
labelWidth: labelWidth,
termsURL: "terms",
Copy link
Member

Choose a reason for hiding this comment

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

Why removing this default value?

Copy link
Member

Choose a reason for hiding this comment

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

I confirm that this is working with a sane default /terms, so please restore it with that value.

Choose a reason for hiding this comment

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

done!

Improve the template by allowing to set the URL when rendering the qweb
template by setting a value for the termsURL variable by context.

TT40305
@pilarvargas-tecnativa pilarvargas-tecnativa force-pushed the 15.0-imp-website_form_require_legal branch from a6558be to a914de6 Compare December 13, 2023 19:08
@pedrobaeza
Copy link
Member

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 15.0-ocabot-merge-pr-1025-by-pedrobaeza-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 47f4c1e into OCA:15.0 Dec 14, 2023
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

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