Skip to content

Commit

Permalink
[MIG] website_menu_by_user_status: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
NICO-SOLUTIONS committed Nov 30, 2023
1 parent cd23f22 commit 15fbc6a
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 36 deletions.
16 changes: 6 additions & 10 deletions website_menu_by_user_status/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +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

Known issues / Roadmap
======================

- 2 flags will just toggle specific groups automatically [based on
https://github.com/OCA/website/tree/11.0/website_menu_permission]
5. remove default filter to edit website menu line

Bug Tracker
===========
Expand Down Expand Up @@ -80,6 +75,7 @@ Contributors
- Meyomesse Gilles <meyomesse.gilles@gmail.com>
- David Dufresne
- Kaushal Prajapati <kbprajapati@live.com>
- Nils Coenen <nils.coenen@nico-solutions.de>

Maintainers
-----------
Expand Down
2 changes: 1 addition & 1 deletion website_menu_by_user_status/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions website_menu_by_user_status/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
- Meyomesse Gilles \<<meyomesse.gilles@gmail.com>\>
- David Dufresne
- Kaushal Prajapati \<<kbprajapati@live.com>\>
- Nils Coenen \<<nils.coenen@nico-solutions.de>\>
2 changes: 0 additions & 2 deletions website_menu_by_user_status/readme/ROADMAP.md

This file was deleted.

3 changes: 2 additions & 1 deletion website_menu_by_user_status/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
32 changes: 13 additions & 19 deletions website_menu_by_user_status/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -377,12 +377,11 @@ <h1 class="title">Website Menu By User Display</h1>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#usage" id="toc-entry-1">Usage</a></li>
<li><a class="reference internal" href="#known-issues-roadmap" id="toc-entry-2">Known issues / Roadmap</a></li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-3">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-2">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-3">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-4">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-5">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-6">Maintainers</a></li>
</ul>
</li>
</ul>
Expand All @@ -391,48 +390,43 @@ <h1 class="title">Website Menu By User Display</h1>
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>To use this module, you need to:</p>
<ol class="arabic simple">
<li>Go to Website &gt; Configuration &gt; Settings &gt; Pages.</li>
<li>Activate developer mode</li>
<li>Go to Website &gt; Configuration &gt; Menus.</li>
<li>Select the page for which you would like to hide the menu.</li>
<li>In the Related Menu Items table, check whether the menu item is
visible for logged/unlogged users.</li>
<li>remove default filter to edit website menu line</li>
</ol>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1>
<ul class="simple">
<li>2 flags will just toggle specific groups automatically [based on
<a class="reference external" href="https://github.com/OCA/website/tree/11.0/website_menu_permission">https://github.com/OCA/website/tree/11.0/website_menu_permission</a>]</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/website/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/website/issues/new?body=module:%20website_menu_by_user_status%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
<ul class="simple">
<li>Savoir-faire Linux</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<ul class="simple">
<li>Bruno Joliveau &lt;<a class="reference external" href="mailto:bruno.joliveau&#64;savoirfairelinux.com">bruno.joliveau&#64;savoirfairelinux.com</a>&gt;</li>
<li>Jordi Riera &lt;<a class="reference external" href="mailto:jordi.riera&#64;savoirfairelinux.com">jordi.riera&#64;savoirfairelinux.com</a>&gt;</li>
<li>Meyomesse Gilles &lt;<a class="reference external" href="mailto:meyomesse.gilles&#64;gmail.com">meyomesse.gilles&#64;gmail.com</a>&gt;</li>
<li>David Dufresne</li>
<li>Kaushal Prajapati &lt;<a class="reference external" href="mailto:kbprajapati&#64;live.com">kbprajapati&#64;live.com</a>&gt;</li>
<li>Nils Coenen &lt;<a class="reference external" href="mailto:nils.coenen&#64;nico-solutions.de">nils.coenen&#64;nico-solutions.de</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
Expand Down
4 changes: 2 additions & 2 deletions website_menu_by_user_status/tests/test_website_menu.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
1 change: 0 additions & 1 deletion website_menu_by_user_status/views/website_menu.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2013-2017 Savoir-faire Linux (<http://www.savoirfairelinux.com>)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
Expand Down

0 comments on commit 15fbc6a

Please sign in to comment.