diff --git a/.docker_files/main/__manifest__.py b/.docker_files/main/__manifest__.py index ed3ca942..14029c2e 100644 --- a/.docker_files/main/__manifest__.py +++ b/.docker_files/main/__manifest__.py @@ -13,6 +13,7 @@ "depends": [ "base", "admin_light_base", + "admin_light_bi_view_editor", "admin_light_calendar", "admin_light_gamification", "attachment_minio", diff --git a/Dockerfile b/Dockerfile index 12fda246..e8a84b9e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,7 @@ RUN gitoo install-all --conf_file /gitoo.yml --destination "${THIRD_PARTY_ADDONS USER odoo COPY admin_light_base /mnt/extra-addons/admin_light_base +COPY admin_light_bi_view_editor /mnt/extra-addons/admin_light_bi_view_editor COPY admin_light_calendar /mnt/extra-addons/admin_light_calendar COPY admin_light_gamification /mnt/extra-addons/admin_light_gamification COPY attachment_minio /mnt/extra-addons/attachment_minio diff --git a/admin_light_bi_view_editor/README.rst b/admin_light_bi_view_editor/README.rst new file mode 100644 index 00000000..9f3fdff4 --- /dev/null +++ b/admin_light_bi_view_editor/README.rst @@ -0,0 +1,37 @@ +========================== +Admin Light BI View Editor +========================== +This module restricts access to the menu entries of the bi_view_editor module to all users +except `Admin Light / Base` and `Administration / Configuration` users. + +Usage +----- +* As a user in the `Administration / Configuration` or `Admin Light / Base` user group, +I go to the `Dashboard` application. + +I see that I have access to the `Custom Reports` and `Custom Bi Views` menu entries. + +.. image:: static/description/custom_bi_views_menu.png + +If I do a search in the search bar on the app panel (if the feature is available like on enterprise edition of Odoo), +, I see the menu. + + +* As a user not part of the `Administration / Configuration` or `Admin Light / Base` user group, +I go to the `Dashboard` application. + +I see that I don't have access to the `Custom Reports` and `Custom Bi Views` menu entries. + +.. image:: static/description/dasbhoard_menu.png + +Even if I do a search in the search bar on the app panel (if the feature is available like on enterprise edition of Odoo), +, I see the menu. + + +Contributors +------------ +* Numigi (tm) and all its contributors (https://bit.ly/numigiens) + +More information +---------------- +* Meet us at https://bit.ly/numigi-com diff --git a/admin_light_bi_view_editor/__init__.py b/admin_light_bi_view_editor/__init__.py new file mode 100644 index 00000000..e45b4e94 --- /dev/null +++ b/admin_light_bi_view_editor/__init__.py @@ -0,0 +1,2 @@ +# Copyright 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/AGPL). diff --git a/admin_light_bi_view_editor/__manifest__.py b/admin_light_bi_view_editor/__manifest__.py new file mode 100644 index 00000000..89d47eec --- /dev/null +++ b/admin_light_bi_view_editor/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2023 Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/AGPL). + +{ + "name": "Admin Light BI View Editor", + "version": "16.0.1.0.0", + "author": "Numigi", + "maintainer": "Numigi", + "license": "AGPL-3", + "category": "Other", + "summary": "Add restrictions on the menu of bi_view_editor module.", + "depends": ["admin_light_base", "bi_view_editor"], + "data": [ + "views/bi_view_editor_menu.xml", + ], + "installable": True, +} diff --git a/admin_light_bi_view_editor/static/description/custom_bi_views_menu.png b/admin_light_bi_view_editor/static/description/custom_bi_views_menu.png new file mode 100644 index 00000000..7b9de882 Binary files /dev/null and b/admin_light_bi_view_editor/static/description/custom_bi_views_menu.png differ diff --git a/admin_light_bi_view_editor/static/description/dasbhoard_menu.png b/admin_light_bi_view_editor/static/description/dasbhoard_menu.png new file mode 100644 index 00000000..6ab3b787 Binary files /dev/null and b/admin_light_bi_view_editor/static/description/dasbhoard_menu.png differ diff --git a/admin_light_bi_view_editor/static/description/icon.png b/admin_light_bi_view_editor/static/description/icon.png new file mode 100644 index 00000000..92a86b10 Binary files /dev/null and b/admin_light_bi_view_editor/static/description/icon.png differ diff --git a/admin_light_bi_view_editor/views/bi_view_editor_menu.xml b/admin_light_bi_view_editor/views/bi_view_editor_menu.xml new file mode 100644 index 00000000..15bce757 --- /dev/null +++ b/admin_light_bi_view_editor/views/bi_view_editor_menu.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + +