Skip to content

Commit

Permalink
TA#66760 [16.0][MIG] admin_light_base
Browse files Browse the repository at this point in the history
  • Loading branch information
majouda committed Jul 29, 2024
1 parent 66240c1 commit 5a6c01d
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 39 deletions.
2 changes: 1 addition & 1 deletion admin_light_base/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# © 2018 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# Copyright 2018 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
30 changes: 15 additions & 15 deletions admin_light_base/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# © 2018 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# Copyright 2018 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{

Check warning on line 4 in admin_light_base/__manifest__.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

admin_light_base/__manifest__.py#L4

Statement seems to have no effect
'name': 'Admin Light',
'version': '1.0.2',
'author': 'Numigi',
'maintainer': 'Numigi',
'license': 'LGPL-3',
'category': 'Other',
'summary': 'Add an admin menu with restricted functionalities.',
'depends': ['base'],
'data': [
'base.xml',
'sequence.xml',
'security/ir.model.access.csv',
"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
"installable": True,
"application": True,
}
4 changes: 2 additions & 2 deletions admin_light_base/base.xml → admin_light_base/data/base.xml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@

<record id="group_admin" model="res.groups">
<field name="name">Safe Administration / Base</field>
<field name="category_id" ref="base.module_category_usability"/>
<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"/>
groups="group_admin" />

<menuitem
id="menu_other"
Expand Down
4 changes: 2 additions & 2 deletions admin_light_base/sequence.xml → admin_light_base/data/sequence.xml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

<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'))]"/>
<field name="category_id" ref="module_category_admin" />
<field name="implied_ids" eval="[(4, ref('group_admin'))]" />
</record>

<menuitem
Expand Down
2 changes: 1 addition & 1 deletion admin_light_base/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ 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: 2019-01-24 11:39-0500\n"
"PO-Revision-Date: 2024-06-24 11:39-0500\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: fr\n"
Expand Down
18 changes: 0 additions & 18 deletions admin_light_base/migrations/12.0.1.0.1/pre-migration.py

This file was deleted.

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

Please sign in to comment.