diff --git a/.copier-answers.yml b/.copier-answers.yml
index 7c17255853..c4f4622916 100644
--- a/.copier-answers.yml
+++ b/.copier-answers.yml
@@ -1,5 +1,5 @@
# Do NOT update manually; changes here will be overwritten by Copier
-_commit: v1.29
+_commit: v1.39
_src_path: gh:oca/oca-addons-repo-template
ci: GitHub
convert_readme_fragments_to_markdown: false
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000..e0d56685a9
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+test-requirements.txt merge=union
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 10b8acad59..0188a4ca28 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -17,6 +17,8 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
+ cache: 'pip'
+ cache-dependency-path: '.pre-commit-config.yaml'
- name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v4
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index c5561694bd..9344f65ce7 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -63,6 +63,13 @@ jobs:
run: oca_init_test_database
- name: Run tests
run: oca_run_tests
+ - name: Upload screenshots from JS tests
+ uses: actions/upload-artifact@v4
+ if: ${{ failure() }}
+ with:
+ name: Screenshots of failed JS tests - ${{ matrix.name }}${{ join(matrix.include) }}
+ path: /tmp/odoo_tests/${{ env.PGDATABASE }}
+ if-no-files-found: ignore
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ec166a1970..b956b650e2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -39,7 +39,7 @@ repos:
language: fail
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
- repo: https://github.com/oca/maintainer-tools
- rev: d5fab7ee87fceee858a3d01048c78a548974d935
+ rev: f9b919b9868143135a9c9cb03021089cabba8223
hooks:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
@@ -104,6 +104,7 @@ repos:
additional_dependencies:
- "eslint@7.8.1"
- "eslint-plugin-jsdoc@"
+ - "globals@"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
@@ -140,7 +141,7 @@ repos:
- --settings=.
exclude: /__init__\.py$
- repo: https://github.com/acsone/setuptools-odoo
- rev: 3.1.8
+ rev: 3.3.2
hooks:
- id: setuptools-odoo-make-default
- id: setuptools-odoo-get-requirements
diff --git a/.pylintrc b/.pylintrc
index d1f72970bc..6c0a78291f 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -25,19 +25,25 @@ disable=all
enable=anomalous-backslash-in-string,
api-one-deprecated,
api-one-multi-together,
- assignment-from-none,
- attribute-deprecated,
class-camelcase,
- dangerous-default-value,
dangerous-view-replace-wo-priority,
- development-status-allowed,
duplicate-id-csv,
- duplicate-key,
duplicate-xml-fields,
duplicate-xml-record-id,
eval-referenced,
- eval-used,
incoherent-interpreter-exec-perm,
+ openerp-exception-warning,
+ redundant-modulename-xml,
+ relative-import,
+ rst-syntax-error,
+ wrong-tabs-instead-of-spaces,
+ xml-syntax-error,
+ assignment-from-none,
+ attribute-deprecated,
+ dangerous-default-value,
+ development-status-allowed,
+ duplicate-key,
+ eval-used,
license-allowed,
manifest-author-string,
manifest-deprecated-key,
@@ -48,40 +54,28 @@ enable=anomalous-backslash-in-string,
method-inverse,
method-required-super,
method-search,
- openerp-exception-warning,
pointless-statement,
pointless-string-statement,
print-used,
redundant-keyword-arg,
- redundant-modulename-xml,
reimported,
- relative-import,
return-in-init,
- rst-syntax-error,
sql-injection,
too-few-format-args,
translation-field,
translation-required,
unreachable,
use-vim-comment,
- wrong-tabs-instead-of-spaces,
- xml-syntax-error,
+ missing-manifest-dependency,
+ too-complex,
# messages that do not cause the lint step to fail
consider-merging-classes-inherited,
- create-user-wo-reset-password,
- dangerous-filter-wo-user,
deprecated-module,
- file-not-used,
invalid-commit,
- missing-manifest-dependency,
- missing-newline-extrafiles,
missing-readme,
- no-utf8-coding-comment,
odoo-addons-relative-import,
- old-api7-method-defined,
redefined-builtin,
- too-complex,
- unnecessary-utf8-coding-comment
+ manifest-external-assets
[REPORTS]
diff --git a/.pylintrc-mandatory b/.pylintrc-mandatory
index 3bf8ceefbc..e444cb7e21 100644
--- a/.pylintrc-mandatory
+++ b/.pylintrc-mandatory
@@ -17,19 +17,25 @@ disable=all
enable=anomalous-backslash-in-string,
api-one-deprecated,
api-one-multi-together,
- assignment-from-none,
- attribute-deprecated,
class-camelcase,
- dangerous-default-value,
dangerous-view-replace-wo-priority,
- development-status-allowed,
duplicate-id-csv,
- duplicate-key,
duplicate-xml-fields,
duplicate-xml-record-id,
eval-referenced,
- eval-used,
incoherent-interpreter-exec-perm,
+ openerp-exception-warning,
+ redundant-modulename-xml,
+ relative-import,
+ rst-syntax-error,
+ wrong-tabs-instead-of-spaces,
+ xml-syntax-error,
+ assignment-from-none,
+ attribute-deprecated,
+ dangerous-default-value,
+ development-status-allowed,
+ duplicate-key,
+ eval-used,
license-allowed,
manifest-author-string,
manifest-deprecated-key,
@@ -40,24 +46,18 @@ enable=anomalous-backslash-in-string,
method-inverse,
method-required-super,
method-search,
- openerp-exception-warning,
pointless-statement,
pointless-string-statement,
print-used,
redundant-keyword-arg,
- redundant-modulename-xml,
reimported,
- relative-import,
return-in-init,
- rst-syntax-error,
sql-injection,
too-few-format-args,
translation-field,
translation-required,
unreachable,
- use-vim-comment,
- wrong-tabs-instead-of-spaces,
- xml-syntax-error
+ use-vim-comment
[REPORTS]
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
diff --git a/README.md b/README.md
index 270fc400d7..e38310c860 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,7 @@
+[](https://odoo-community.org/get-involved?utm_source=repo-readme)
+
+# website
[](https://runboat.odoo-community.org/builds?repo=OCA/website&target_branch=14.0)
[](https://github.com/OCA/website/actions/workflows/pre-commit.yml?query=branch%3A14.0)
[](https://github.com/OCA/website/actions/workflows/test.yml?query=branch%3A14.0)
@@ -7,8 +10,6 @@
-# website
-
TODO: add repo description.
@@ -22,7 +23,7 @@ Available addons
addon | version | maintainers | summary
--- | --- | --- | ---
[website_analytics_matomo](website_analytics_matomo/) | 14.0.1.0.0 | | Track website users using matomo
-[website_cookiefirst](website_cookiefirst/) | 14.0.1.1.0 | | Cookiefirst integration
+[website_cookiefirst](website_cookiefirst/) | 14.0.2.0.0 | | Cookiefirst integration
[website_crm_privacy_policy](website_crm_privacy_policy/) | 14.0.1.0.0 | | Website CRM privacy policy
[website_crm_quick_answer](website_crm_quick_answer/) | 14.0.1.1.0 | | Add an automatic answer for contacts asking for info
[website_forum_subscription](website_forum_subscription/) | 14.0.1.0.0 | | Adds a button to allow subscription from the website
diff --git a/website_cookiefirst/README.rst b/website_cookiefirst/README.rst
index 48b75e80ee..b4ffeab3c7 100644
--- a/website_cookiefirst/README.rst
+++ b/website_cookiefirst/README.rst
@@ -1,3 +1,7 @@
+.. image:: https://odoo-community.org/readme-banner-image
+ :target: https://odoo-community.org/get-involved?utm_source=readme
+ :alt: Odoo Community Association
+
===================
Website Cookiefirst
===================
@@ -7,13 +11,13 @@ Website Cookiefirst
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:2163483392027df2b9abb541550ffb4426c21f2d0c6e3a1419cc57210be19311
+ !! source digest: sha256:dae2bf04a12194af6c9fc617475cc5fbf3f0ea16ccfbada5cc7643d032f185e8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
-.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
+.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github
@@ -42,10 +46,12 @@ Configuration
To configure this module, you need to:
-#. Go to **Website > Configuration > Settings**
-#. Search 'Cookiefirst' option.
-#. Fill in your 'Cookiefirst ID' (e.g. '00000000-0000-0000-0000-000000000000').
-#. Click on "Save" button.
+1. Go to **Website \> Configuration \> Settings**
+2. Search 'Cookiefirst' option.
+3. Enable Use Cookiefirst checkbox
+4. Enter your Cookiefirst **API Key** into **Cookiefirst ID** field (e.g.
+ '00000000-0000-0000-0000-000000000000').
+5. Click on "Save" button.
Bug Tracker
===========
diff --git a/website_cookiefirst/__manifest__.py b/website_cookiefirst/__manifest__.py
index b3bbd26d8f..d23ed73e45 100644
--- a/website_cookiefirst/__manifest__.py
+++ b/website_cookiefirst/__manifest__.py
@@ -4,7 +4,7 @@
"name": "Website Cookiefirst",
"summary": "Cookiefirst integration",
"category": "Website",
- "version": "14.0.1.1.0",
+ "version": "14.0.2.0.0",
"author": "Studio73, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/website",
"license": "AGPL-3",
diff --git a/website_cookiefirst/readme/CONFIGURE.rst b/website_cookiefirst/readme/CONFIGURE.rst
index 4e58e2c548..ccd11cccfc 100644
--- a/website_cookiefirst/readme/CONFIGURE.rst
+++ b/website_cookiefirst/readme/CONFIGURE.rst
@@ -1,6 +1,8 @@
To configure this module, you need to:
-#. Go to **Website > Configuration > Settings**
-#. Search 'Cookiefirst' option.
-#. Fill in your 'Cookiefirst ID' (e.g. '00000000-0000-0000-0000-000000000000').
-#. Click on "Save" button.
+1. Go to **Website \> Configuration \> Settings**
+2. Search 'Cookiefirst' option.
+3. Enable Use Cookiefirst checkbox
+4. Enter your Cookiefirst **API Key** into **Cookiefirst ID** field (e.g.
+ '00000000-0000-0000-0000-000000000000').
+5. Click on "Save" button.
diff --git a/website_cookiefirst/static/description/index.html b/website_cookiefirst/static/description/index.html
index db042cae03..766bf6ab24 100644
--- a/website_cookiefirst/static/description/index.html
+++ b/website_cookiefirst/static/description/index.html
@@ -1,18 +1,18 @@
-
-Website Cookiefirst
+README.rst
-
-
Website Cookiefirst
+
+
+
+
+
+
+
Website Cookiefirst
-

+

This module integrates Odoo website with GDPR through the functionality of
Cookiefirst <https://cookiefirst.com/>, you need to register your website
domain in Cookiefirst’s portal.
@@ -387,17 +392,19 @@
Website Cookiefirst
-
+
To configure this module, you need to:
- Go to Website > Configuration > Settings
- Search ‘Cookiefirst’ option.
-- Fill in your ‘Cookiefirst ID’ (e.g. ‘00000000-0000-0000-0000-000000000000’).
+- Enable Use Cookiefirst checkbox
+- Enter your Cookiefirst API Key into Cookiefirst ID field (e.g.
+‘00000000-0000-0000-0000-000000000000’).
- Click on “Save” button.
-
+
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
@@ -405,15 +412,15 @@
Do not contact contributors directly about support or help with technical issues.
-
+
-
+
This module is maintained by the OCA.
-

+
+
+
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
@@ -437,5 +446,6 @@
+
diff --git a/website_cookiefirst/views/portal_template.xml b/website_cookiefirst/views/portal_template.xml
index 83abff810e..c63cd133b8 100644
--- a/website_cookiefirst/views/portal_template.xml
+++ b/website_cookiefirst/views/portal_template.xml
@@ -17,10 +17,9 @@
performance
-
+