Skip to content

[BP][IMP] website_cookiefirst: Replace deprecated Cookiefirst functionality#1116

Merged
OCA-git-bot merged 1 commit intoOCA:14.0from
NICO-SOLUTIONS:14.0-bp-imp-website_cookiefirst_consent_js
Mar 16, 2026
Merged

[BP][IMP] website_cookiefirst: Replace deprecated Cookiefirst functionality#1116
OCA-git-bot merged 1 commit intoOCA:14.0from
NICO-SOLUTIONS:14.0-bp-imp-website_cookiefirst_consent_js

Conversation

@NICO-SOLUTIONS
Copy link
Copy Markdown
Member

@NICO-SOLUTIONS NICO-SOLUTIONS marked this pull request as ready for review July 2, 2025 13:14
Copy link
Copy Markdown
Member

@ioans73 ioans73 left a comment

Choose a reason for hiding this comment

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

LGTM

- replace banner.js with new consent.js script using domain and identifier
- remove www. prefix from domain in cookiefirst script URL
- back ported from V17 PR (OCA#1110 & OCA#1117)
@NICO-SOLUTIONS NICO-SOLUTIONS force-pushed the 14.0-bp-imp-website_cookiefirst_consent_js branch from ef79780 to 5368132 Compare July 10, 2025 10:01
Copy link
Copy Markdown

@mariancuadranetkia mariancuadranetkia left a comment

Choose a reason for hiding this comment

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

LGTM!

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 8, 2026

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 8, 2026
@NICO-SOLUTIONS
Copy link
Copy Markdown
Member Author

@pedrobaeza
hey pedro. Could you remove the stale tag pls? would be great..

@pedrobaeza pedrobaeza added this to the 14.0 milestone Mar 9, 2026
@pedrobaeza
Copy link
Copy Markdown
Member

/ocabot merge major

@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

OCA-git-bot added a commit that referenced this pull request Mar 9, 2026
Signed-off-by pedrobaeza
@OCA-git-bot
Copy link
Copy Markdown
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 14.0-ocabot-merge-pr-1116-by-pedrobaeza-bump-major.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@NICO-SOLUTIONS
Copy link
Copy Markdown
Member Author

@pedrobaeza
Hey Pedro,
I noticed that when running the OCA pre-commit hooks on GitHub, the setuptools-odoo hooks fail with the following error:

ModuleNotFoundError: No module named 'pkg_resources'

It seems that this may be happening because the GitHub Actions environment does not have setuptools (and therefore pkg_resources) installed before the hooks are executed. On my local environment, where setuptools is installed, the pre-commit hooks run successfully.

Could this issue be related to my local setup, or is it something that occurs specifically in the GitHub Actions environment?

@pedrobaeza
Copy link
Copy Markdown
Member

Please put a PR updating the copier template, that includes the patch for this.

@github-actions github-actions Bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 15, 2026
@NICO-SOLUTIONS
Copy link
Copy Markdown
Member Author

@pedrobaeza
Hey Pedro, thanks as always for your guidance!

Since I’m not that familiar with the procedure yet, I just wanted to check upfront: would adding setuptools as an additional_dependencies for this hook in .pre-commit-config.yaml.jinja be enough, or is there anything else I should keep in mind?

- repo: https://github.com/acsone/setuptools-odoo
  rev: {{ repo_rev.setuptools_odoo }}
  hooks:
    - id: setuptools-odoo-make-default
      additional_dependencies:
        - setuptools
    {%- if generate_requirements_txt %}

@pedrobaeza
Copy link
Copy Markdown
Member

pre-commit fixed in #1173 executing the update of the template with the copier tool.

@pedrobaeza
Copy link
Copy Markdown
Member

/ocabot merge major

@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

@OCA-git-bot OCA-git-bot merged commit c7e8888 into OCA:14.0 Mar 16, 2026
6 of 7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

@NICO-SOLUTIONS
Copy link
Copy Markdown
Member Author

@pedrobaeza
thx 🙏

@NICO-SOLUTIONS NICO-SOLUTIONS deleted the 14.0-bp-imp-website_cookiefirst_consent_js branch March 16, 2026 18:40
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.

6 participants