From 13e0d90d9381cf5d22f1b7ad1d16a8183184b656 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Fri, 17 Jul 2015 11:34:42 +0200 Subject: [PATCH] [PORT][REF] OCA conventions; --- web_dashboard_tile/__init__.py | 2 +- web_dashboard_tile/__openerp__.py | 4 ++-- web_dashboard_tile/models/__init__.py | 23 +++++++++++++++++++ .../{tile.py => models/tile_tile.py} | 0 .../{view => views}/templates.xml | 0 web_dashboard_tile/{view => views}/tile.xml | 0 6 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 web_dashboard_tile/models/__init__.py rename web_dashboard_tile/{tile.py => models/tile_tile.py} (100%) rename web_dashboard_tile/{view => views}/templates.xml (100%) rename web_dashboard_tile/{view => views}/tile.xml (100%) diff --git a/web_dashboard_tile/__init__.py b/web_dashboard_tile/__init__.py index 9ad11b3e..35d8f47b 100644 --- a/web_dashboard_tile/__init__.py +++ b/web_dashboard_tile/__init__.py @@ -23,4 +23,4 @@ # ############################################################################## -from . import tile +from . import models diff --git a/web_dashboard_tile/__openerp__.py b/web_dashboard_tile/__openerp__.py index ab6afc6f..66cc7544 100644 --- a/web_dashboard_tile/__openerp__.py +++ b/web_dashboard_tile/__openerp__.py @@ -34,8 +34,8 @@ "category": "web", 'license': 'AGPL-3', 'data': [ - 'view/tile.xml', - 'view/templates.xml', + 'views/tile.xml', + 'views/templates.xml', 'security/ir.model.access.csv', 'security/rules.xml', ], diff --git a/web_dashboard_tile/models/__init__.py b/web_dashboard_tile/models/__init__.py new file mode 100644 index 00000000..fc23e732 --- /dev/null +++ b/web_dashboard_tile/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2015-Today GRAP +# @author Sylvain LE GAL (https://twitter.com/legalsylvain) +# +# 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 . +# +############################################################################## + +from . import tile_tile diff --git a/web_dashboard_tile/tile.py b/web_dashboard_tile/models/tile_tile.py similarity index 100% rename from web_dashboard_tile/tile.py rename to web_dashboard_tile/models/tile_tile.py diff --git a/web_dashboard_tile/view/templates.xml b/web_dashboard_tile/views/templates.xml similarity index 100% rename from web_dashboard_tile/view/templates.xml rename to web_dashboard_tile/views/templates.xml diff --git a/web_dashboard_tile/view/tile.xml b/web_dashboard_tile/views/tile.xml similarity index 100% rename from web_dashboard_tile/view/tile.xml rename to web_dashboard_tile/views/tile.xml