Skip to content

Commit

Permalink
TA#68033 [IMP] account_show_full_features : Adjusted menu access perm…
Browse files Browse the repository at this point in the history
…issions (#210)
  • Loading branch information
rivo2302 authored Aug 23, 2024
1 parent 464f82b commit 41564de
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
8 changes: 8 additions & 0 deletions account_show_full_features/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ The full accounting features are hidden to the group ``Billing Manager``.

.. image:: static/description/menus_before.png

The menu ``Accounting/Accounting`` is dedicated to the group ``Show Accounting Features - Readonly``.

.. image:: static/description/access_menu_before.png

After
~~~~~
The group ``Accountant`` is added to the available groups.
Expand All @@ -24,6 +28,10 @@ The full accounting features are available to the groups ``Accountant`` and ``Bi

.. image:: static/description/menus_after.png

The menu ``Accounting/Accounting`` has been moved to the group ``Accountant``.

.. image:: static/description/access_menu_after.png

Contributors
------------
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)
15 changes: 7 additions & 8 deletions account_show_full_features/data/ir_ui_menu.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<data>


<function model="ir.ui.menu" name="write">
<value eval="ref('account.menu_finance')"/>
<value eval="{'name': 'Accounting'}"/>
<value eval="ref('account.menu_finance')" />
<value eval="{'name': 'Accounting'}" />
</function>



<!-- Make the list of account.move.line available without debug mode -->
<record id="account.menu_action_account_moves_all" model="ir.ui.menu">
<field name="groups_id" eval="[(5, 0)]"/>
<field name="groups_id" eval="[(5, 0)]" />
</record>

</data>
<record id="account.menu_finance_entries" model="ir.ui.menu">
<field name="groups_id" eval="[(6, 0, [ref('account.group_account_user')])]" />
</record>
</data>
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.

0 comments on commit 41564de

Please sign in to comment.