Skip to content

Commit

Permalink
Merge pull request #163 from Numigi/TA#67249-move
Browse files Browse the repository at this point in the history
TA#66760 [16.0][MIG] admin_light_base
  • Loading branch information
majouda authored Jul 29, 2024
2 parents 2263aeb + 1825f0a commit 934d31c
Show file tree
Hide file tree
Showing 16 changed files with 198 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 @@ -12,6 +12,7 @@
"summary": "Install all addons required for testing.",
"depends": [
"base",
"admin_light_base",
"attachment_minio",
"base_external_report_layout",
"ir_attachment_access_token_portal",
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,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 attachment_minio /mnt/extra-addons/attachment_minio
COPY base_external_report_layout /mnt/extra-addons/base_external_report_layout
COPY ir_attachment_access_token_portal /mnt/extra-addons/ir_attachment_access_token_portal
Expand Down
34 changes: 34 additions & 0 deletions admin_light_base/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Admin Light
===========
This module adds a new `Administration` menu with restricted functionalities.

.. image:: static/description/app_icon.png

The purpose of this module is to give partial administration access to the client.
This helps prevent manipulation errors and simplifies the navigation for the administrator.

This module adds the new application without any content.
Specific modules add the functionalities to the application.

Functionalities are added on an `ad hoc` basis, based on the trainings completed by the client.
Each functionnality is added by a specific user group.

.. image:: static/description/user_form.png

Sequences
---------
A new group `Safe Administration / Sequences` is added.

.. image:: static/description/sequence_group.png

This group has access to create and edit sequences.

.. image:: static/description/sequence_list.png

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_base/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright 2018 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
20 changes: 20 additions & 0 deletions admin_light_base/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2018 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "Admin Light",
"version": "16.0.1.0.0",
"author": "Numigi",
"maintainer": "Numigi",
"license": "LGPL-3",
"category": "Other",
"summary": "Add an admin menu with restricted functionalities.",
"depends": ["base"],
"data": [
"views/base.xml",
"views/sequence.xml",
"security/ir.model.access.csv",
],
"installable": True,
"application": True,
}
28 changes: 28 additions & 0 deletions admin_light_base/data/base.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<record id="module_category_admin" model="ir.module.category">
<field name="name">Safe Administration</field>
<field name="sequence">100</field>
</record>

<record id="group_admin" model="res.groups">
<field name="name">Safe Administration / Base</field>
<field name="category_id" ref="base.module_category_usability" />
</record>

<menuitem
id="menu_admin"
name="Administration"
web_icon="base,static/description/settings.png"
sequence="500"
groups="group_admin" />

<menuitem
id="menu_other"
name="Other"
parent="menu_admin"
sequence="100"
/>

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

<record id="group_sequence" model="res.groups">
<field name="name">Sequences</field>
<field name="category_id" ref="module_category_admin" />
<field name="implied_ids" eval="[(4, ref('group_admin'))]" />
</record>

<menuitem
id="menu_sequence"
name="Sequences"
parent="menu_other"
groups="group_sequence"
action="base.ir_sequence_form"
sequence="10"
/>

</odoo>
44 changes: 44 additions & 0 deletions admin_light_base/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * admin_light_base
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-01-24 16:38+0000\n"
"PO-Revision-Date: 2024-06-24 11:39-0500\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"X-Generator: Poedit 2.0.6\n"

#. module: admin_light_base
#: model:ir.ui.menu,name:admin_light_base.menu_admin
msgid "Administration"
msgstr "Administration"

#. module: admin_light_base
#: model:ir.module.category,name:admin_light_base.module_category_admin
msgid "Safe Administration"
msgstr "Administration sécurisée"

#. module: admin_light_base
#: model:res.groups,name:admin_light_base.group_admin
msgid "Safe Administration / Base"
msgstr "Administration sécurisée / Base"

#. module: admin_light_base
#: model:ir.ui.menu,name:admin_light_base.menu_other
msgid "Other"
msgstr "Autre"

#. module: admin_light_base
#: model:ir.ui.menu,name:admin_light_base.menu_sequence
#: model:res.groups,name:admin_light_base.group_sequence
msgid "Sequences"
msgstr "Séquences"
2 changes: 2 additions & 0 deletions admin_light_base/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink
access_ir_sequence,Admin Light: ir.sequence,base.model_ir_sequence,group_sequence,1,1,1,1
Binary file added admin_light_base/static/description/app_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added admin_light_base/static/description/icon.png
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.
28 changes: 28 additions & 0 deletions admin_light_base/views/base.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<record id="module_category_admin" model="ir.module.category">
<field name="name">Safe Administration</field>
<field name="sequence">100</field>
</record>

<record id="group_admin" model="res.groups">
<field name="name">Safe Administration / Base</field>
<field name="category_id" ref="base.module_category_usability" />
</record>

<menuitem
id="menu_admin"
name="Administration"
web_icon="base,static/description/settings.png"
sequence="500"
groups="group_admin" />

<menuitem
id="menu_other"
name="Other"
parent="menu_admin"
sequence="100"
/>

</odoo>
19 changes: 19 additions & 0 deletions admin_light_base/views/sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<record id="group_sequence" model="res.groups">
<field name="name">Sequences</field>
<field name="category_id" ref="module_category_admin" />
<field name="implied_ids" eval="[(4, ref('group_admin'))]" />
</record>

<menuitem
id="menu_sequence"
name="Sequences"
parent="menu_other"
groups="group_sequence"
action="base.ir_sequence_form"
sequence="10"
/>

</odoo>

0 comments on commit 934d31c

Please sign in to comment.