-
-
Notifications
You must be signed in to change notification settings - Fork 700
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][MIG] website_cookiebot: Migration to version 15.0 #935
Conversation
- Reorganize templates. - Make templates noupdate=0, because if user edits them, it will be in the COW'd, website-specific version, so no problem on that. - Rename `cookiebot_id` to `cookiebot_dgid` to avoid confusion with X2many fields. - Remove ICP support, as the DGID should be per website. - Add ID placeholders to Cookie Declaration page editable sections. - Ensure Google Analytic script is blocked before consenting statistics. FTR it wasn't actually being blocked. - Improve instructions. - Split README. - Apply pre-commit. @Tecnativa TT32828
<template id="layout_footer_copyright" inherit_id="web.frontend_layout"> | ||
<xpath | ||
expr="//body" | ||
position="inside" | ||
> | ||
<div> | ||
<span t-if="website.cookiebot_dgid">- <a | ||
href="/legal/cookies-policy" | ||
>Cookies Policy</a></span> | ||
</div> | ||
|
||
</xpath> | ||
</template> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check this other module implementation that will give you a clue on how to make it better (inherit from that other template): https://github.com/OCA/website/blob/14.0/website_legal_page/views/website_legal_main_page.xml#L4-L18
afd69a1
to
dfb4de7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
/ocabot migration website_cookiebot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ocabot merge nobump
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 6e22930. Thanks a lot for contributing to OCA. ❤️ |
cc @Tecnativa TT39017
@chienandalu @pedrobaeza please review!