From d60e0400962887bd3ec6acb3691ca217f7b00dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Maes?= Date: Fri, 27 May 2016 14:07:04 +0200 Subject: [PATCH] [MOV] portal : reorganize module directory --- addons/portal/__init__.py | 2 +- addons/portal/__openerp__.py | 8 ++++---- addons/portal/{ => data}/portal_data.xml | 0 addons/portal/{ => data}/portal_demo.xml | 0 addons/portal/models/__init__.py | 4 ++++ addons/portal/{portal.py => models/res_groups.py} | 0 addons/portal/{portal_view.xml => views/portal_views.xml} | 0 .../{portal_wizard_view.xml => portal_wizard_views.xml} | 0 8 files changed, 9 insertions(+), 5 deletions(-) rename addons/portal/{ => data}/portal_data.xml (100%) rename addons/portal/{ => data}/portal_demo.xml (100%) create mode 100644 addons/portal/models/__init__.py rename addons/portal/{portal.py => models/res_groups.py} (100%) rename addons/portal/{portal_view.xml => views/portal_views.xml} (100%) rename addons/portal/wizard/{portal_wizard_view.xml => portal_wizard_views.xml} (100%) diff --git a/addons/portal/__init__.py b/addons/portal/__init__.py index aad4bac3af1..11529f98733 100644 --- a/addons/portal/__init__.py +++ b/addons/portal/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import portal +import models import wizard diff --git a/addons/portal/__openerp__.py b/addons/portal/__openerp__.py index 1ea62101981..c7d9640d291 100644 --- a/addons/portal/__openerp__.py +++ b/addons/portal/__openerp__.py @@ -22,12 +22,12 @@ the portal automatically adds it to the portal users, etc). That feature is very handy when used in combination with the module 'share'. """, 'data': [ - 'portal_data.xml', - 'portal_view.xml', - 'wizard/portal_wizard_view.xml', + 'data/portal_data.xml', + 'views/portal_views.xml', + 'wizard/portal_wizard_views.xml', 'security/ir.model.access.csv', ], - 'demo': ['portal_demo.xml'], + 'demo': ['data/portal_demo.xml'], 'auto_install': True, 'installable': True, } diff --git a/addons/portal/portal_data.xml b/addons/portal/data/portal_data.xml similarity index 100% rename from addons/portal/portal_data.xml rename to addons/portal/data/portal_data.xml diff --git a/addons/portal/portal_demo.xml b/addons/portal/data/portal_demo.xml similarity index 100% rename from addons/portal/portal_demo.xml rename to addons/portal/data/portal_demo.xml diff --git a/addons/portal/models/__init__.py b/addons/portal/models/__init__.py new file mode 100644 index 00000000000..f24d339393b --- /dev/null +++ b/addons/portal/models/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +import res_groups diff --git a/addons/portal/portal.py b/addons/portal/models/res_groups.py similarity index 100% rename from addons/portal/portal.py rename to addons/portal/models/res_groups.py diff --git a/addons/portal/portal_view.xml b/addons/portal/views/portal_views.xml similarity index 100% rename from addons/portal/portal_view.xml rename to addons/portal/views/portal_views.xml diff --git a/addons/portal/wizard/portal_wizard_view.xml b/addons/portal/wizard/portal_wizard_views.xml similarity index 100% rename from addons/portal/wizard/portal_wizard_view.xml rename to addons/portal/wizard/portal_wizard_views.xml