Skip to content

Commit

Permalink
TA#66760 [IMP] admin_light_base
Browse files Browse the repository at this point in the history
  • Loading branch information
majouda committed Sep 4, 2024
1 parent 1b7a676 commit 96a91f4
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 49 deletions.
5 changes: 5 additions & 0 deletions admin_light_base/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ 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.

The group `Safe Administration / Base` is added by this module to grant access to the Administration application.
This group requires developper mode to be displayed under the section `Extra Rights`.

.. image:: static/description/safe_administration_group.png

The section `Safe Administartion` requires developper mode to be displayed.

.. image:: static/description/user_form.png
Expand Down
6 changes: 3 additions & 3 deletions admin_light_base/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "Admin Light",
"name": "Admin Light Base",
"version": "16.0.1.0.0",
"author": "Numigi",
"maintainer": "Numigi",
Expand All @@ -11,9 +11,9 @@
"summary": "Add an admin menu with restricted functionalities.",
"depends": ["base"],
"data": [
"data/base.xml",
"data/sequence.xml",
"security/res_groups.xml",
"security/ir.model.access.csv",
"views/menus.xml"
],
"installable": True,
"application": True,
Expand Down
19 changes: 0 additions & 19 deletions admin_light_base/data/sequence.xml

This file was deleted.

22 changes: 10 additions & 12 deletions admin_light_base/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,27 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0+e\n"
"Project-Id-Version: Odoo Server 16.0\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"
"POT-Creation-Date: 2024-09-04 21:40+0000\n"
"PO-Revision-Date: 2024-09-04 21:40+0000\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"
"Content-Transfer-Encoding: \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.ui.menu,name:admin_light_base.menu_other
msgid "Other"
msgstr "Autre"

#. module: admin_light_base
#: model:ir.module.category,name:admin_light_base.module_category_admin
msgid "Safe Administration"
Expand All @@ -32,11 +35,6 @@ msgstr "Administration sécurisée"
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,18 @@
<record id="module_category_admin" model="ir.module.category">
<field name="name">Safe Administration</field>
<field name="parent_id" eval="False"/>
<field name="sequence">3</field>
<field name="sequence">1</field>
</record>

<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>

<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>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions admin_light_base/views/menus.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<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" />

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

</odoo>

0 comments on commit 96a91f4

Please sign in to comment.