[ADD]New module GOLEM Admin for managements users, groups, companies

This commit is contained in:
Fabien BOURGEOIS 2018-07-20 17:54:47 +02:00
parent 1829c62879
commit 9b2462a132
7 changed files with 168 additions and 0 deletions

16
golem_admin/__init__.py Normal file
View File

@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2018 Fabien Bourgeois <fabien@yaltik.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -0,0 +1,34 @@
# -*- coding: utf-8 -*-
# Copyright 2018 Fabien Bourgeois <fabien@yaltik.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
{
'name': 'GOLEM Admin module',
'summary': 'GOLEM Admin module',
'description': '''GOLEM Admin module :
- New application on top menu ;
- Management of users and groups, companies ;
- Good default access / rights to do. ''',
'version': '10.0.0.1.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': True,
'installable': True,
'depends': ['base'],
'data': ['security/ir.model.access.csv',
'views/golem_admin_views.xml']
}

37
golem_admin/i18n/fr.po Normal file
View File

@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * golem_admin
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-07-20 15:54+0000\n"
"PO-Revision-Date: 2018-07-20 15:54+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: golem_admin
#: model:ir.ui.menu,name:golem_admin.res_company_menu
msgid "Companies"
msgstr "Sociétés"
#. module: golem_admin
#: model:ir.ui.menu,name:golem_admin.res_groups_menu
msgid "Groups"
msgstr "Groupes"
#. module: golem_admin
#: model:ir.ui.menu,name:golem_admin.security_menu
msgid "Security"
msgstr "Sécurité"
#. module: golem_admin
#: model:ir.ui.menu,name:golem_admin.res_users_menu
msgid "Users"
msgstr "Utilisateurs"

View File

@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * golem_admin
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-07-20 15:54+0000\n"
"PO-Revision-Date: 2018-07-20 15:54+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: golem_admin
#: model:ir.ui.menu,name:golem_admin.res_company_menu
msgid "Companies"
msgstr ""
#. module: golem_admin
#: model:ir.ui.menu,name:golem_admin.res_groups_menu
msgid "Groups"
msgstr ""
#. module: golem_admin
#: model:ir.ui.menu,name:golem_admin.security_menu
msgid "Security"
msgstr ""
#. module: golem_admin
#: model:ir.ui.menu,name:golem_admin.res_users_menu
msgid "Users"
msgstr ""

View File

@ -0,0 +1,6 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_res_company_group_golem_manager,Access Companies GOLEM Manager,base.model_res_company,golem_base.group_golem_manager,1,1,0,0
access_res_users_group_golem_manager,Access Users GOLEM Manager,base.model_res_users,golem_base.group_golem_manager,1,1,1,1
access_res_groups_group_golem_manager,Access Groups GOLEM Manager,base.model_res_groups,golem_base.group_golem_manager,1,1,0,0
access_ir_module_category_group_golem_manager,Access IR Module Category GOLEM Manager,base.model_ir_module_category,golem_base.group_golem_manager,1,0,0,0
access_ir_ui_view_group_golem_manager,Access IR UI View GOLEM Manager,base.model_ir_ui_view,golem_base.group_golem_manager,1,1,0,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_res_company_group_golem_manager Access Companies GOLEM Manager base.model_res_company golem_base.group_golem_manager 1 1 0 0
3 access_res_users_group_golem_manager Access Users GOLEM Manager base.model_res_users golem_base.group_golem_manager 1 1 1 1
4 access_res_groups_group_golem_manager Access Groups GOLEM Manager base.model_res_groups golem_base.group_golem_manager 1 1 0 0
5 access_ir_module_category_group_golem_manager Access IR Module Category GOLEM Manager base.model_ir_module_category golem_base.group_golem_manager 1 0 0 0
6 access_ir_ui_view_group_golem_manager Access IR UI View GOLEM Manager base.model_ir_ui_view golem_base.group_golem_manager 1 1 0 0

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018 Fabien Bourgeois <fabien@yaltik.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<odoo>
<data>
<!-- Menus -->
<menuitem id="security_menu" name="Security" sequence="400"
web_icon="golem_admin,static/description/icon.png"
groups="golem_base.group_golem_manager" />
<menuitem id="res_groups_menu" action="base.action_res_groups"
parent="security_menu" sequence="10"
groups="golem_base.group_golem_manager" />
<menuitem id="res_users_menu" action="base.action_res_users"
parent="security_menu" sequence="5"
groups="golem_base.group_golem_manager" />
<menuitem id="res_company_menu" action="base.action_res_company_form"
parent="security_menu" sequence="10"
groups="golem_base.group_golem_manager" />
</data>
</odoo>