Skip to content

Commit

Permalink
Merge pull request #179 from Numigi/migration
Browse files Browse the repository at this point in the history
TA#66761 [16.0][MIG] admin_light_bi_view_editor
  • Loading branch information
majouda authored Sep 3, 2024
2 parents 2c50a5b + 6dd6fc7 commit 3b7dbae
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 0 deletions.
1 change: 1 addition & 0 deletions .docker_files/main/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"depends": [
"base",
"admin_light_base",
"admin_light_bi_view_editor",
"admin_light_calendar",
"admin_light_gamification",
"attachment_minio",
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
37 changes: 37 additions & 0 deletions admin_light_bi_view_editor/README.rst
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions admin_light_bi_view_editor/__init__.py
Original file line number Diff line number Diff line change
@@ -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).
17 changes: 17 additions & 0 deletions admin_light_bi_view_editor/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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,
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions admin_light_bi_view_editor/views/bi_view_editor_menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record model="ir.ui.menu" id="bi_view_editor.menu_bi_view_editor_custom_reports">
<field eval="[(6,0,[ref('admin_light_base.group_admin'),ref('base.group_system')])]" name="groups_id" />
</record>

<record model="ir.ui.menu" id="bi_view_editor.menu_bi_view_editor_view">
<field eval="[(6,0,[ref('admin_light_base.group_admin'),ref('base.group_system')])]" name="groups_id" />
</record>

</odoo>

0 comments on commit 3b7dbae

Please sign in to comment.