Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TA#66763 [16.0][MIG] admin_light_company #181

Merged
merged 3 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .docker_files/main/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"admin_light_base",
"admin_light_bi_view_editor",
"admin_light_calendar",
"admin_light_company",
"admin_light_gamification",
"attachment_minio",
"lang_fr_activated",
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ USER odoo
COPY admin_light_base /mnt/extra-addons/admin_light_base
COPY admin_light_bi_view_editor /mnt/extra-addons/admin_light_bi_view_editor
COPY admin_light_calendar /mnt/extra-addons/admin_light_calendar
COPY admin_light_company /mnt/extra-addons/admin_light_company
COPY admin_light_gamification /mnt/extra-addons/admin_light_gamification
COPY attachment_minio /mnt/extra-addons/attachment_minio
COPY lang_fr_activated /mnt/extra-addons/lang_fr_activated
Expand Down
19 changes: 19 additions & 0 deletions admin_light_company/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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 @@
# © 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 @@
# © 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': '1.0.1',
'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,
}
22 changes: 22 additions & 0 deletions admin_light_company/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * admin_light_company
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-04 19:17+0000\n"
"PO-Revision-Date: 2024-09-04 19:17+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \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>
Loading