From 9b2462a13269f6d207014d1df65c3746f673a409 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Fri, 20 Jul 2018 17:54:47 +0200 Subject: [PATCH] [ADD]New module GOLEM Admin for managements users, groups, companies --- golem_admin/__init__.py | 16 ++++++++++ golem_admin/__manifest__.py | 34 ++++++++++++++++++++ golem_admin/i18n/fr.po | 37 ++++++++++++++++++++++ golem_admin/i18n/golem_admin.pot | 37 ++++++++++++++++++++++ golem_admin/security/ir.model.access.csv | 6 ++++ golem_admin/static/description/icon.png | Bin 0 -> 1894 bytes golem_admin/views/golem_admin_views.xml | 38 +++++++++++++++++++++++ 7 files changed, 168 insertions(+) create mode 100644 golem_admin/__init__.py create mode 100644 golem_admin/__manifest__.py create mode 100644 golem_admin/i18n/fr.po create mode 100644 golem_admin/i18n/golem_admin.pot create mode 100644 golem_admin/security/ir.model.access.csv create mode 100644 golem_admin/static/description/icon.png create mode 100644 golem_admin/views/golem_admin_views.xml diff --git a/golem_admin/__init__.py b/golem_admin/__init__.py new file mode 100644 index 0000000..9dd702d --- /dev/null +++ b/golem_admin/__init__.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- + +# Copyright 2018 Fabien Bourgeois +# +# 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 . diff --git a/golem_admin/__manifest__.py b/golem_admin/__manifest__.py new file mode 100644 index 0000000..a306c20 --- /dev/null +++ b/golem_admin/__manifest__.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- + +# Copyright 2018 Fabien Bourgeois +# +# 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 . + +{ + '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'] +} diff --git a/golem_admin/i18n/fr.po b/golem_admin/i18n/fr.po new file mode 100644 index 0000000..b8f5140 --- /dev/null +++ b/golem_admin/i18n/fr.po @@ -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" + diff --git a/golem_admin/i18n/golem_admin.pot b/golem_admin/i18n/golem_admin.pot new file mode 100644 index 0000000..3187cc7 --- /dev/null +++ b/golem_admin/i18n/golem_admin.pot @@ -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 "" + diff --git a/golem_admin/security/ir.model.access.csv b/golem_admin/security/ir.model.access.csv new file mode 100644 index 0000000..d9a9b5b --- /dev/null +++ b/golem_admin/security/ir.model.access.csv @@ -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 diff --git a/golem_admin/static/description/icon.png b/golem_admin/static/description/icon.png new file mode 100644 index 0000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qMP` z?Ch;b@g&EfRKy|qgLaoDCqnb2x`2w?3M7jv8c_2Jg>x>$)PT*q)Fp&)W3?KP@$OLz zDx3;PE$I&ssb`iS-YJ~5tz9*^TMbybYPEWBLvGNV2S{e`1YHS9)|hoTsb^9-r4o#P zDY9o;x><*OA9AzGjcpLe4h!q#IMDskYl!2$5+SWgzOj2lyU=VVBx?!I&V?Jg_>HrA&~6g)36Gy~ z4bwn#uh;*eT)x@BT*!vRziy9Cn8bX@BQkm%q>E+_96U8}S5^&7&xgYPu798Em~8ml zMJDqt9r2Lz3HkR3=8B{$+-bXxV%E-V{bQStG_Do%tvTXxV2U6jC9AT`Kr-@=>t)+q2GUtdv9cWYC-e~x|q)`u;5hoFpb`!T%NXs*2bKkCa|ipC#R%yyKL7v# literal 0 HcmV?d00001 diff --git a/golem_admin/views/golem_admin_views.xml b/golem_admin/views/golem_admin_views.xml new file mode 100644 index 0000000..baf2a48 --- /dev/null +++ b/golem_admin/views/golem_admin_views.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + +