diff --git a/.docker_files/main/__manifest__.py b/.docker_files/main/__manifest__.py index 97aea4c6..f102bc12 100644 --- a/.docker_files/main/__manifest__.py +++ b/.docker_files/main/__manifest__.py @@ -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", diff --git a/Dockerfile b/Dockerfile index 628e901b..0674e2b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/admin_light_base/README.rst b/admin_light_base/README.rst new file mode 100644 index 00000000..6e8aecbc --- /dev/null +++ b/admin_light_base/README.rst @@ -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 diff --git a/admin_light_base/__init__.py b/admin_light_base/__init__.py new file mode 100644 index 00000000..b323fd29 --- /dev/null +++ b/admin_light_base/__init__.py @@ -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). diff --git a/admin_light_base/__manifest__.py b/admin_light_base/__manifest__.py new file mode 100644 index 00000000..361f6b26 --- /dev/null +++ b/admin_light_base/__manifest__.py @@ -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, +} diff --git a/admin_light_base/data/base.xml b/admin_light_base/data/base.xml new file mode 100755 index 00000000..e62d4fb6 --- /dev/null +++ b/admin_light_base/data/base.xml @@ -0,0 +1,28 @@ + + + + + Safe Administration + 100 + + + + Safe Administration / Base + + + + + + + + diff --git a/admin_light_base/data/sequence.xml b/admin_light_base/data/sequence.xml new file mode 100755 index 00000000..fa0c8d9b --- /dev/null +++ b/admin_light_base/data/sequence.xml @@ -0,0 +1,19 @@ + + + + + Sequences + + + + + + + diff --git a/admin_light_base/i18n/fr.po b/admin_light_base/i18n/fr.po new file mode 100644 index 00000000..318b32da --- /dev/null +++ b/admin_light_base/i18n/fr.po @@ -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" diff --git a/admin_light_base/security/ir.model.access.csv b/admin_light_base/security/ir.model.access.csv new file mode 100644 index 00000000..3891d622 --- /dev/null +++ b/admin_light_base/security/ir.model.access.csv @@ -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 diff --git a/admin_light_base/static/description/app_icon.png b/admin_light_base/static/description/app_icon.png new file mode 100644 index 00000000..b7eb6d07 Binary files /dev/null and b/admin_light_base/static/description/app_icon.png differ diff --git a/admin_light_base/static/description/icon.png b/admin_light_base/static/description/icon.png new file mode 100644 index 00000000..92a86b10 Binary files /dev/null and b/admin_light_base/static/description/icon.png differ diff --git a/admin_light_base/static/description/sequence_group.png b/admin_light_base/static/description/sequence_group.png new file mode 100644 index 00000000..97877758 Binary files /dev/null and b/admin_light_base/static/description/sequence_group.png differ diff --git a/admin_light_base/static/description/sequence_list.png b/admin_light_base/static/description/sequence_list.png new file mode 100644 index 00000000..f07e4cf7 Binary files /dev/null and b/admin_light_base/static/description/sequence_list.png differ diff --git a/admin_light_base/static/description/user_form.png b/admin_light_base/static/description/user_form.png new file mode 100644 index 00000000..954d79d4 Binary files /dev/null and b/admin_light_base/static/description/user_form.png differ diff --git a/admin_light_base/views/base.xml b/admin_light_base/views/base.xml new file mode 100644 index 00000000..e62d4fb6 --- /dev/null +++ b/admin_light_base/views/base.xml @@ -0,0 +1,28 @@ + + + + + Safe Administration + 100 + + + + Safe Administration / Base + + + + + + + + diff --git a/admin_light_base/views/sequence.xml b/admin_light_base/views/sequence.xml new file mode 100644 index 00000000..fa0c8d9b --- /dev/null +++ b/admin_light_base/views/sequence.xml @@ -0,0 +1,19 @@ + + + + + Sequences + + + + + + +