Skip to content

Commit

Permalink
fixup! [15.0][IMP] bi_view_editor: Restrict access to non BI View Edi…
Browse files Browse the repository at this point in the history
…tor Manager users
  • Loading branch information
yankinmax committed Oct 25, 2023
1 parent a5612c8 commit 4df35fa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions bi_view_editor/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ Usage
To graphically design your analysis data-set:

- From the Dashboards menu, select "Custom BI Views"
- BI Views creation is restricted to admin users and members of "BI View Editor Manager" group.
You can add this group to a user in User form, Access Rights, Technical section.
- Browse trough the business objects in the "Query Builder" tab
- Pick the interesting fields (Drag & Drop)
- For each selected field, right-click on the Options column and select whether
Expand All @@ -88,6 +90,7 @@ To access the created BI View with a dedicated menu:

- If module Dashboard (board) is installed, the standard "Add to My Dashboard"
functionality would be available
- "Create a menu" is restricted to admin users and members of "BI View Editor Manager" group.
- Click "Create a menu" to create a new menu item directly linked to your new
BI view (this feature is available in developer mode); when the BI view is
reset back to draft this menu will be removed, and you will need to re-create
Expand Down
2 changes: 1 addition & 1 deletion bi_view_editor/security/res_groups.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<odoo noupdate="1">

<record id="group_bve_manager" model="res.groups">
<field name="name">BI View Editor Manager</field>
Expand Down
7 changes: 5 additions & 2 deletions bi_view_editor/views/bve_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,29 @@
type="object"
states="created"
string="Reset to Draft"
groups="bi_view_editor.group_bve_manager"
/>
<button
name="action_create"
type="object"
states="draft"
string="Generate BI View"
class="oe_highlight"
groups="bi_view_editor.group_bve_manager"
/>
<button
name="open_view"
type="object"
states="created"
string="Open BI View"
class="oe_highlight"
groups="bi_view_editor.group_bve_manager"
/>
<button
name="%(base.act_menu_create)d"
type="action"
states="created"
groups="base.group_no_one"
groups="bi_view_editor.group_bve_manager"
icon="fa-align-justify"
string="Create a Menu"
target="new"
Expand All @@ -57,6 +60,7 @@
states="created"
icon="fa-globe"
string="Translations"
groups="bi_view_editor.group_bve_manager"
/>
</div>
<h1>
Expand Down Expand Up @@ -188,6 +192,5 @@
id="menu_bi_view_editor_view"
parent="menu_bi_view_editor_custom_reports"
action="action_bi_view_editor_view_form"
groups="bi_view_editor.group_bve_manager"
/>
</odoo>

0 comments on commit 4df35fa

Please sign in to comment.