Skip to content

Commit

Permalink
TA#66895 [MIG] account_show_full_features (#185)
Browse files Browse the repository at this point in the history
* [16.0][MIG] account_show_full_features
---------

Co-authored-by: Majda EL MARIOULI <majdaelmariouli@gmail.com>
  • Loading branch information
abenzbiria and majouda authored Jul 2, 2024
1 parent 4739938 commit 1e04673
Show file tree
Hide file tree
Showing 13 changed files with 117 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": [
"account",
"account_bank_menu",
"account_show_full_features",
"old_accounts",
],
"installable": True,
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 account_bank_menu /mnt/extra-addons/account_bank_menu
COPY account_show_full_features /mnt/extra-addons/account_show_full_features
COPY old_accounts /mnt/extra-addons/old_accounts

COPY .docker_files/main /mnt/extra-addons/main
Expand Down
29 changes: 29 additions & 0 deletions account_show_full_features/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Account Show Full Features
==========================
This module shows the accounting menus hidden in Odoo community.

Before
~~~~~~
Only 2 groups are available for the ``Invoicing`` application.

.. image:: static/description/groups_before.png

The full accounting features are hidden to the group ``Billing Manager``.

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

After
~~~~~
The group ``Accountant`` is added to the available groups.

The group ``Billing Manager`` is renamed ``Manager``.

.. image:: static/description/groups_after.png

The full accounting features are available to the groups ``Accountant`` and ``Billing Manager``.

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

Contributors
------------
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)
2 changes: 2 additions & 0 deletions account_show_full_features/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
21 changes: 21 additions & 0 deletions account_show_full_features/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
'name': 'Show Full Accounting Features',
'version': '1.0.0',
'author': 'Numigi',
'maintainer': 'Numigi',
'website': 'https://www.numigi.com',
'license': 'LGPL-3',
'category': 'Accounting',
'summary': 'Show the accounting features hidden in Odoo community',
'depends': [
'account',
],
'data': [
'data/ir_ui_menu.xml',
'data/res_groups.xml',
],
'installable': True,
}
17 changes: 17 additions & 0 deletions account_show_full_features/data/ir_ui_menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?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'}"/>
</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)]"/>
</record>

</data>
25 changes: 25 additions & 0 deletions account_show_full_features/data/res_groups.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<data>

<record id="account.group_account_user" model="res.groups">
<field name="category_id" ref="base.module_category_accounting_accounting"/>
<field name="implied_ids" eval="[(4, ref('account.group_account_invoice'))]"/>
</record>

<record id="account.group_account_manager" model="res.groups">
<field name="implied_ids" eval="[(4, ref('account.group_account_user'))]"/>
</record>


<function model="res.groups" name="write">
<value eval="ref('account.group_account_user')"/>
<value eval="{'name': 'Accountant'}"/>
</function>

<function model="res.groups" name="write">
<value eval="ref('account.group_account_manager')"/>
<value eval="{'name': 'Manager'}"/>
</function>


</data>
21 changes: 21 additions & 0 deletions account_show_full_features/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account
#

#. module: account_show_full_features
#: model:ir.ui.menu,name:account.menu_finance
msgid "Invoicing"
msgstr "Comptabilité"


#. module: account_show_full_features
#: model:res.groups,name:account.group_account_manager
msgid "Billing Administrator"
msgstr "Gestionnaire"


#. module: account_show_full_features
#: model:res.groups,name:account.group_account_user
msgid "Billing"
msgstr "Comptable"
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.
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 1e04673

Please sign in to comment.