Skip to content

Commit

Permalink
TA#66763 [16.0][MIG] admin_light_company
Browse files Browse the repository at this point in the history
  • Loading branch information
majouda committed Sep 4, 2024
1 parent 2dd1a1e commit ac59cef
Show file tree
Hide file tree
Showing 10 changed files with 89 additions and 0 deletions.
20 changes: 20 additions & 0 deletions admin_light_company/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
===================
Admin Light Company
===================
This module adds the management of companies to the Admin Light application.

A new group `Safe Administration / Company` is added.

.. image:: static/description/company_group.png

This group can create and edit companies.

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

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

admin_light_company/__manifest__.py#L4

Statement seems to have no effect
"name": "Admin Light Company",
"version": "16.0.1.0.0",
"author": "Numigi",
"maintainer": "Numigi",
"license": "LGPL-3",
"category": "Other",
"summary": "Add companies to the admin light application",
"depends": ["admin_light_base"],
"data": [
"security/res_groups.xml",
"security/ir.model.access.csv",
"views/menu.xml",
],
"installable": True,
}
24 changes: 24 additions & 0 deletions admin_light_company/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * admin_light_company
#
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-07-12 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_company
#: model:ir.ui.menu,name:admin_light_company.menu_company
#: model:res.groups,name:admin_light_company.group_company
msgid "Companies"
msgstr "Sociétés"
2 changes: 2 additions & 0 deletions admin_light_company/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_res_company,Admin Light: res.company,base.model_res_company,group_company,1,1,1,0
10 changes: 10 additions & 0 deletions admin_light_company/security/res_groups.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

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

</odoo>
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.
Binary file added admin_light_company/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.
12 changes: 12 additions & 0 deletions admin_light_company/views/menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<menuitem
id="menu_company"
name="Companies"
parent="admin_light_base.menu_admin"
groups="group_company"
action="base.action_res_company_form"
sequence="1" />

</odoo>

0 comments on commit ac59cef

Please sign in to comment.