From 7a778167641d3aa6bef4e0a968cc232fb076387c Mon Sep 17 00:00:00 2001 From: Carlos Roca Date: Thu, 8 Aug 2024 10:56:26 +0200 Subject: [PATCH 1/2] [FIX] web_responsive: Can't access web using superuser Before this change when trying to access web using superuser the web interface is not charged. By doing this change is all working normally. Steps to reproduce the problem: 1. Log in 2. Go to web/become --- web_responsive/static/src/components/apps_menu/apps_menu.esm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_responsive/static/src/components/apps_menu/apps_menu.esm.js b/web_responsive/static/src/components/apps_menu/apps_menu.esm.js index 200561ab3..b1c3b2f29 100644 --- a/web_responsive/static/src/components/apps_menu/apps_menu.esm.js +++ b/web_responsive/static/src/components/apps_menu/apps_menu.esm.js @@ -31,7 +31,7 @@ patch(WebClient.prototype, { ["is_redirect_home"] ); this.env.services.user.updateContext({ - is_redirect_to_home: is_redirect_home[0].is_redirect_home, + is_redirect_to_home: is_redirect_home[0]?.is_redirect_home, }); }); this.redirect = false; From fbc6fe80b461fa91ba2ac03bca5b771c5f0a04f9 Mon Sep 17 00:00:00 2001 From: Carlos Roca Date: Thu, 8 Aug 2024 11:40:43 +0200 Subject: [PATCH 2/2] [UPD] Update copier to v1.24 --- .copier-answers.yml | 2 +- .eslintrc.yml | 2 +- .gitignore | 9 +++++++++ .pre-commit-config.yaml | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index 30377bb9d..ec3be8782 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.21.1 +_commit: v1.24 _src_path: gh:oca/oca-addons-repo-template additional_ruff_rules: [] ci: GitHub diff --git a/.eslintrc.yml b/.eslintrc.yml index fed88d70d..0b3820395 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -4,7 +4,7 @@ env: # See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449 parserOptions: - ecmaVersion: 2019 + ecmaVersion: 2022 overrides: - files: diff --git a/.gitignore b/.gitignore index 0090721f5..2b045db39 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,15 @@ var/ *.egg *.eggs +# Debian packages +*.deb + +# Redhat packages +*.rpm + +# MacOS packages +*.dmg + # Installer logs pip-log.txt pip-delete-this-directory.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 74abcaa20..36779b369 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: hooks: - id: whool-init - repo: https://github.com/oca/maintainer-tools - rev: 9a170331575a265c092ee6b24b845ec508e8ef75 + rev: d5fab7ee87fceee858a3d01048c78a548974d935 hooks: # update the NOT INSTALLABLE ADDONS section above - id: oca-update-pre-commit-excluded-addons