From 6601bed446150fcf17d1768058eeaac518b60431 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Wed, 15 Nov 2017 15:42:41 +0100 Subject: [PATCH] [REF][WIP]Modularisation basic structure --- __init__.py => coworking_app/__init__.py | 0 .../__manifest__.py | 0 coworking_base/__init__.py | 3 ++ coworking_base/__manifest__.py | 31 +++++++++++++++++++ coworking_coworker/__init__.py | 3 ++ coworking_coworker/__manifest__.py | 31 +++++++++++++++++++ .../models}/__init__.py | 0 .../models}/coworker.py | 0 .../security}/ir.model.access.csv | 0 .../views}/coworker_views.xml | 0 .../views}/coworking_menu.xml | 0 coworking_event/__init__.py | 3 ++ coworking_event/__manifest__.py | 31 +++++++++++++++++++ coworking_event/models/__init__.py | 4 +++ {models => coworking_event/models}/event.py | 0 coworking_event/security/ir.model.access.csv | 4 +++ .../views}/event_menu.xml | 0 .../views}/event_views.xml | 0 18 files changed, 110 insertions(+) rename __init__.py => coworking_app/__init__.py (100%) rename __manifest__.py => coworking_app/__manifest__.py (100%) create mode 100644 coworking_base/__init__.py create mode 100644 coworking_base/__manifest__.py create mode 100644 coworking_coworker/__init__.py create mode 100644 coworking_coworker/__manifest__.py rename {models => coworking_coworker/models}/__init__.py (100%) rename {models => coworking_coworker/models}/coworker.py (100%) rename {security => coworking_coworker/security}/ir.model.access.csv (100%) rename {views => coworking_coworker/views}/coworker_views.xml (100%) rename {views => coworking_coworker/views}/coworking_menu.xml (100%) create mode 100644 coworking_event/__init__.py create mode 100644 coworking_event/__manifest__.py create mode 100644 coworking_event/models/__init__.py rename {models => coworking_event/models}/event.py (100%) create mode 100644 coworking_event/security/ir.model.access.csv rename {views => coworking_event/views}/event_menu.xml (100%) rename {views => coworking_event/views}/event_views.xml (100%) diff --git a/__init__.py b/coworking_app/__init__.py similarity index 100% rename from __init__.py rename to coworking_app/__init__.py diff --git a/__manifest__.py b/coworking_app/__manifest__.py similarity index 100% rename from __manifest__.py rename to coworking_app/__manifest__.py diff --git a/coworking_base/__init__.py b/coworking_base/__init__.py new file mode 100644 index 0000000..cde864b --- /dev/null +++ b/coworking_base/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import models diff --git a/coworking_base/__manifest__.py b/coworking_base/__manifest__.py new file mode 100644 index 0000000..87c735d --- /dev/null +++ b/coworking_base/__manifest__.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- + +# Copyright 2017 Firstname Lastname +# +# 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': 'Coworking', + 'summary': 'yaltik coworking module simplify your coworking gerance', + 'description': """ yaltik coworking module simplify your coworking gerance """, + 'version': '10.0.0.0.1', + 'category': 'Useless', + 'author': 'Yaltik', + 'license': 'AGPL-3', + 'application': False, + 'installable': True, + 'data': ['views/coworking_menu.xml', 'views/coworker_views.xml', + 'security/ir.model.access.csv', 'views/event_menu.xml', 'views/event_views.xml'], + 'depends': ['base'] +} diff --git a/coworking_coworker/__init__.py b/coworking_coworker/__init__.py new file mode 100644 index 0000000..cde864b --- /dev/null +++ b/coworking_coworker/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import models diff --git a/coworking_coworker/__manifest__.py b/coworking_coworker/__manifest__.py new file mode 100644 index 0000000..87c735d --- /dev/null +++ b/coworking_coworker/__manifest__.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- + +# Copyright 2017 Firstname Lastname +# +# 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': 'Coworking', + 'summary': 'yaltik coworking module simplify your coworking gerance', + 'description': """ yaltik coworking module simplify your coworking gerance """, + 'version': '10.0.0.0.1', + 'category': 'Useless', + 'author': 'Yaltik', + 'license': 'AGPL-3', + 'application': False, + 'installable': True, + 'data': ['views/coworking_menu.xml', 'views/coworker_views.xml', + 'security/ir.model.access.csv', 'views/event_menu.xml', 'views/event_views.xml'], + 'depends': ['base'] +} diff --git a/models/__init__.py b/coworking_coworker/models/__init__.py similarity index 100% rename from models/__init__.py rename to coworking_coworker/models/__init__.py diff --git a/models/coworker.py b/coworking_coworker/models/coworker.py similarity index 100% rename from models/coworker.py rename to coworking_coworker/models/coworker.py diff --git a/security/ir.model.access.csv b/coworking_coworker/security/ir.model.access.csv similarity index 100% rename from security/ir.model.access.csv rename to coworking_coworker/security/ir.model.access.csv diff --git a/views/coworker_views.xml b/coworking_coworker/views/coworker_views.xml similarity index 100% rename from views/coworker_views.xml rename to coworking_coworker/views/coworker_views.xml diff --git a/views/coworking_menu.xml b/coworking_coworker/views/coworking_menu.xml similarity index 100% rename from views/coworking_menu.xml rename to coworking_coworker/views/coworking_menu.xml diff --git a/coworking_event/__init__.py b/coworking_event/__init__.py new file mode 100644 index 0000000..cde864b --- /dev/null +++ b/coworking_event/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import models diff --git a/coworking_event/__manifest__.py b/coworking_event/__manifest__.py new file mode 100644 index 0000000..87c735d --- /dev/null +++ b/coworking_event/__manifest__.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- + +# Copyright 2017 Firstname Lastname +# +# 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': 'Coworking', + 'summary': 'yaltik coworking module simplify your coworking gerance', + 'description': """ yaltik coworking module simplify your coworking gerance """, + 'version': '10.0.0.0.1', + 'category': 'Useless', + 'author': 'Yaltik', + 'license': 'AGPL-3', + 'application': False, + 'installable': True, + 'data': ['views/coworking_menu.xml', 'views/coworker_views.xml', + 'security/ir.model.access.csv', 'views/event_menu.xml', 'views/event_views.xml'], + 'depends': ['base'] +} diff --git a/coworking_event/models/__init__.py b/coworking_event/models/__init__.py new file mode 100644 index 0000000..7f37d89 --- /dev/null +++ b/coworking_event/models/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +"""dd""" +from . import coworker +from . import event diff --git a/models/event.py b/coworking_event/models/event.py similarity index 100% rename from models/event.py rename to coworking_event/models/event.py diff --git a/coworking_event/security/ir.model.access.csv b/coworking_event/security/ir.model.access.csv new file mode 100644 index 0000000..7b1f30b --- /dev/null +++ b/coworking_event/security/ir.model.access.csv @@ -0,0 +1,4 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +acess_coworker_group_user,Access COWORKER Member User,model_coworking_coworker,base.group_user,1,1,1,0 +acess_coworker_group_manager,Access COWORKER Member Manager,model_coworking_coworker,base.group_partner_manager,1,1,1,1 +acess_coworker_group_user,Access COWORKER Member User,model_coworking_event,base.group_user,1,1,1,1 diff --git a/views/event_menu.xml b/coworking_event/views/event_menu.xml similarity index 100% rename from views/event_menu.xml rename to coworking_event/views/event_menu.xml diff --git a/views/event_views.xml b/coworking_event/views/event_views.xml similarity index 100% rename from views/event_views.xml rename to coworking_event/views/event_views.xml