From 0e95b7b6bccc146232e831dd92259b1f8a04180c Mon Sep 17 00:00:00 2001 From: leNeo Date: Wed, 24 Aug 2016 18:53:04 +0200 Subject: [PATCH] [MIG] base_comment_template to 9.0 --- base_comment_template/README.rst | 29 +++++++++++++- base_comment_template/__init__.py | 3 +- base_comment_template/__openerp__.py | 39 ++++++------------- base_comment_template/models/__init__.py | 2 + base_comment_template/{ => models}/comment.py | 21 +--------- .../{comment_view.xml => views/comment.xml} | 0 6 files changed, 45 insertions(+), 49 deletions(-) create mode 100644 base_comment_template/models/__init__.py rename base_comment_template/{ => models}/comment.py (54%) rename base_comment_template/{comment_view.xml => views/comment.xml} (100%) diff --git a/base_comment_template/README.rst b/base_comment_template/README.rst index 2383ed1a..5ca2bad4 100644 --- a/base_comment_template/README.rst +++ b/base_comment_template/README.rst @@ -1,3 +1,8 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +======================= Base Comments Templates ======================= @@ -5,7 +10,6 @@ Add a new model to define templates of comments to print on documents. Two positions are available for the comments: - - above document lines - below document lines @@ -15,9 +19,32 @@ This module is the base module for following modules: * purchase_comment_template * invoice_comment_template +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + Contributors ------------ * Nicolas Bessi * Yannick Vaucher * Guewen Baconnier + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/base_comment_template/__init__.py b/base_comment_template/__init__.py index 72bf49f6..9dd1c5c2 100644 --- a/base_comment_template/__init__.py +++ b/base_comment_template/__init__.py @@ -1,2 +1,3 @@ # -*- coding: utf-8 -*- -from . import comment +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from . import models diff --git a/base_comment_template/__openerp__.py b/base_comment_template/__openerp__.py index ba603c62..8cf47bc0 100644 --- a/base_comment_template/__openerp__.py +++ b/base_comment_template/__openerp__.py @@ -1,31 +1,14 @@ # -*- coding: utf-8 -*- -# -# -# Author: Nicolas Bessi -# Copyright 2013-2014 Camptocamp SA -# -# 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": "Base Comments Templates", - "summary": "Comments templates on documents", - "version": "8.0.1.0.0", - "depends": ["base"], - "author": "Camptocamp,Odoo Community Association (OCA)", - "data": ["comment_view.xml", +# © 2013-2014 Nicolas Bessi (Camptocamp SA) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{'name': 'Base Comments Templates', + 'summary': 'Comments templates on documents', + 'version': '9.0.1.0.0', + 'license': 'AGPL-3', + 'depends': ['base', ], + 'author': 'Camptocamp,Odoo Community Association (OCA)', + 'data': ['views/comment.xml', 'security/ir.model.access.csv', ], - "category": "Sale", - "installable": True, - "active": False, } + 'category': 'Sale', + 'installable': True, } diff --git a/base_comment_template/models/__init__.py b/base_comment_template/models/__init__.py new file mode 100644 index 00000000..72bf49f6 --- /dev/null +++ b/base_comment_template/models/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +from . import comment diff --git a/base_comment_template/comment.py b/base_comment_template/models/comment.py similarity index 54% rename from base_comment_template/comment.py rename to base_comment_template/models/comment.py index eee893b9..79032e12 100644 --- a/base_comment_template/comment.py +++ b/base_comment_template/models/comment.py @@ -1,23 +1,6 @@ # -*- coding: utf-8 -*- -# -# -# Author: Nicolas Bessi -# Copyright 2013-2014 Camptocamp SA -# -# 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 . -# -# +# © 2013-2014 Nicolas Bessi (Camptocamp SA) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import models, fields, api diff --git a/base_comment_template/comment_view.xml b/base_comment_template/views/comment.xml similarity index 100% rename from base_comment_template/comment_view.xml rename to base_comment_template/views/comment.xml