diff --git a/website_menu_by_user_status/README.rst b/website_menu_by_user_status/README.rst index cadb9c2e1f..cd0184da41 100644 --- a/website_menu_by_user_status/README.rst +++ b/website_menu_by_user_status/README.rst @@ -42,11 +42,12 @@ Usage To use this module, you need to: -1. Go to Website > Configuration > Settings > Pages. -2. Select the page for which you would like to hide the menu. -3. In the Related Menu Items table, check whether the menu item is +1. Activate developer mode +2. Go to Website > Configuration > Menus. +3. Select the page for which you would like to hide the menu. +4. In the Related Menu Items table, check whether the menu item is visible for logged/unlogged users. -4. remove default filter to edit website menu line +5. remove default filter to edit website menu line Known issues / Roadmap ====================== @@ -80,6 +81,7 @@ Contributors - Meyomesse Gilles - David Dufresne - Kaushal Prajapati +- Nils Coenen Maintainers ----------- diff --git a/website_menu_by_user_status/__manifest__.py b/website_menu_by_user_status/__manifest__.py index 514cf2dcd3..91d85cbcce 100644 --- a/website_menu_by_user_status/__manifest__.py +++ b/website_menu_by_user_status/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Website Menu By User Display", - "version": "14.0.1.0.0", + "version": "17.0.1.0.0", "author": "Savoir-faire Linux,Odoo Community Association (OCA)", "website": "https://github.com/OCA/website", "license": "AGPL-3", diff --git a/website_menu_by_user_status/readme/CONTRIBUTORS.md b/website_menu_by_user_status/readme/CONTRIBUTORS.md index b850fe6a2d..7b9475db2c 100644 --- a/website_menu_by_user_status/readme/CONTRIBUTORS.md +++ b/website_menu_by_user_status/readme/CONTRIBUTORS.md @@ -3,3 +3,4 @@ - Meyomesse Gilles \<\> - David Dufresne - Kaushal Prajapati \<\> +- Nils Coenen \<\> diff --git a/website_menu_by_user_status/readme/USAGE.md b/website_menu_by_user_status/readme/USAGE.md index d64f9b2e4b..5235e5c2f1 100644 --- a/website_menu_by_user_status/readme/USAGE.md +++ b/website_menu_by_user_status/readme/USAGE.md @@ -1,6 +1,7 @@ To use this module, you need to: -1. Go to Website \> Configuration \> Settings \> Pages. +1. Activate developer mode +2. Go to Website \> Configuration \> Menus. 2. Select the page for which you would like to hide the menu. 3. In the Related Menu Items table, check whether the menu item is visible for logged/unlogged users. diff --git a/website_menu_by_user_status/static/description/index.html b/website_menu_by_user_status/static/description/index.html index ea97cbac0e..836d400c94 100644 --- a/website_menu_by_user_status/static/description/index.html +++ b/website_menu_by_user_status/static/description/index.html @@ -391,7 +391,8 @@

Website Menu By User Display

Usage

To use this module, you need to:

    -
  1. Go to Website > Configuration > Settings > Pages.
  2. +
  3. Activate developer mode
  4. +
  5. Go to Website > Configuration > Menus.
  6. Select the page for which you would like to hide the menu.
  7. In the Related Menu Items table, check whether the menu item is visible for logged/unlogged users.
  8. @@ -429,6 +430,7 @@

    Contributors

  9. Meyomesse Gilles <meyomesse.gilles@gmail.com>
  10. David Dufresne
  11. Kaushal Prajapati <kbprajapati@live.com>
  12. +
  13. Nils Coenen <nils.coenen@nico-solutions.de>
  14. diff --git a/website_menu_by_user_status/tests/test_website_menu.py b/website_menu_by_user_status/tests/test_website_menu.py index f768e59c73..6faafc64bf 100644 --- a/website_menu_by_user_status/tests/test_website_menu.py +++ b/website_menu_by_user_status/tests/test_website_menu.py @@ -1,10 +1,10 @@ # Copyright 2018 David Dufresne # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo.tests import SavepointCase +from odoo.tests import TransactionCase -class TestWebsiteMenu(SavepointCase): +class TestWebsiteMenu(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() diff --git a/website_menu_by_user_status/views/website_menu.xml b/website_menu_by_user_status/views/website_menu.xml index f96bea3570..ed63288848 100644 --- a/website_menu_by_user_status/views/website_menu.xml +++ b/website_menu_by_user_status/views/website_menu.xml @@ -1,4 +1,3 @@ -