From 12a93563ea1030d223479cce895ea9cb573d5685 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Thu, 9 Apr 2015 17:15:25 +0200 Subject: [PATCH] [REF] OCA convention. (model and view folder); --- web_dashboard_tile/__init__.py | 27 +++++++++++++++++++++++++- web_dashboard_tile/__openerp__.py | 2 +- web_dashboard_tile/model/__init__.py | 26 +++++++++++++++++++++++++ web_dashboard_tile/{ => model}/tile.py | 0 web_dashboard_tile/{ => view}/tile.xml | 0 5 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 web_dashboard_tile/model/__init__.py rename web_dashboard_tile/{ => model}/tile.py (100%) rename web_dashboard_tile/{ => view}/tile.xml (100%) diff --git a/web_dashboard_tile/__init__.py b/web_dashboard_tile/__init__.py index 386e21ce..a90906cd 100644 --- a/web_dashboard_tile/__init__.py +++ b/web_dashboard_tile/__init__.py @@ -1 +1,26 @@ -from . import tile +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2010-2013 OpenERP s.a. (). +# Copyright (C) 2014 initOS GmbH & Co. KG (). +# Copyright (C) 2015-Today GRAP +# Author Markus Schneider +# @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 model diff --git a/web_dashboard_tile/__openerp__.py b/web_dashboard_tile/__openerp__.py index 3c294ba5..e98d42ce 100644 --- a/web_dashboard_tile/__openerp__.py +++ b/web_dashboard_tile/__openerp__.py @@ -72,7 +72,7 @@ possible future improvments: * support client side action (like inbox); """, 'data': [ - 'tile.xml', + 'view/tile.xml', 'security/ir.model.access.csv', 'security/rules.xml', ], diff --git a/web_dashboard_tile/model/__init__.py b/web_dashboard_tile/model/__init__.py new file mode 100644 index 00000000..9ad11b3e --- /dev/null +++ b/web_dashboard_tile/model/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2010-2013 OpenERP s.a. (). +# Copyright (C) 2014 initOS GmbH & Co. KG (). +# Copyright (C) 2015-Today GRAP +# Author Markus Schneider +# @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 diff --git a/web_dashboard_tile/tile.py b/web_dashboard_tile/model/tile.py similarity index 100% rename from web_dashboard_tile/tile.py rename to web_dashboard_tile/model/tile.py diff --git a/web_dashboard_tile/tile.xml b/web_dashboard_tile/view/tile.xml similarity index 100% rename from web_dashboard_tile/tile.xml rename to web_dashboard_tile/view/tile.xml