From 8abe6cac4c0b9799223239f9d6a8cee953ca3d8a Mon Sep 17 00:00:00 2001 From: Keyur Gajjar Date: Wed, 12 Aug 2015 11:26:40 +0530 Subject: [PATCH] [MOV] fetchmail: directory reorganization - mode files in correct directory - remove fetchmail_installer_view empty file, ... --- addons/fetchmail/__init__.py | 3 +-- addons/fetchmail/__openerp__.py | 5 ++--- addons/fetchmail/{ => data}/fetchmail_data.xml | 0 addons/fetchmail/fetchmail_installer_view.xml | 5 ----- addons/fetchmail/models/__init__.py | 3 +++ addons/fetchmail/{ => models}/fetchmail.py | 0 addons/fetchmail/{ => models}/res_config.py | 0 .../{fetchmail_view.xml => views/fetchmail_views.xml} | 0 8 files changed, 6 insertions(+), 10 deletions(-) rename addons/fetchmail/{ => data}/fetchmail_data.xml (100%) delete mode 100644 addons/fetchmail/fetchmail_installer_view.xml create mode 100644 addons/fetchmail/models/__init__.py rename addons/fetchmail/{ => models}/fetchmail.py (100%) rename addons/fetchmail/{ => models}/res_config.py (100%) rename addons/fetchmail/{fetchmail_view.xml => views/fetchmail_views.xml} (100%) diff --git a/addons/fetchmail/__init__.py b/addons/fetchmail/__init__.py index 394c311ffad..7546aae6c85 100644 --- a/addons/fetchmail/__init__.py +++ b/addons/fetchmail/__init__.py @@ -1,5 +1,4 @@ #-*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import fetchmail -import res_config +import models diff --git a/addons/fetchmail/__openerp__.py b/addons/fetchmail/__openerp__.py index 326a7aa96c6..68c880ea415 100644 --- a/addons/fetchmail/__openerp__.py +++ b/addons/fetchmail/__openerp__.py @@ -36,10 +36,9 @@ For more specific needs, you may also assign custom-defined actions """, 'website': 'https://www.odoo.com/page/mailing', 'data': [ - 'fetchmail_data.xml', - 'fetchmail_view.xml', + 'data/fetchmail_data.xml', 'security/ir.model.access.csv', - 'fetchmail_installer_view.xml' + 'views/fetchmail_views.xml', ], 'demo': [], 'installable': True, diff --git a/addons/fetchmail/fetchmail_data.xml b/addons/fetchmail/data/fetchmail_data.xml similarity index 100% rename from addons/fetchmail/fetchmail_data.xml rename to addons/fetchmail/data/fetchmail_data.xml diff --git a/addons/fetchmail/fetchmail_installer_view.xml b/addons/fetchmail/fetchmail_installer_view.xml deleted file mode 100644 index 918b7ecd430..00000000000 --- a/addons/fetchmail/fetchmail_installer_view.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/addons/fetchmail/models/__init__.py b/addons/fetchmail/models/__init__.py new file mode 100644 index 00000000000..d25bd214b77 --- /dev/null +++ b/addons/fetchmail/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- +import fetchmail +import res_config diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/models/fetchmail.py similarity index 100% rename from addons/fetchmail/fetchmail.py rename to addons/fetchmail/models/fetchmail.py diff --git a/addons/fetchmail/res_config.py b/addons/fetchmail/models/res_config.py similarity index 100% rename from addons/fetchmail/res_config.py rename to addons/fetchmail/models/res_config.py diff --git a/addons/fetchmail/fetchmail_view.xml b/addons/fetchmail/views/fetchmail_views.xml similarity index 100% rename from addons/fetchmail/fetchmail_view.xml rename to addons/fetchmail/views/fetchmail_views.xml