diff --git a/base_comment_template/README.rst b/base_comment_template/README.rst index c08327b8..fbe08e30 100644 --- a/base_comment_template/README.rst +++ b/base_comment_template/README.rst @@ -14,13 +14,13 @@ Base Comments Templates :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--invoice--reporting-lightgray.png?logo=github - :target: https://github.com/OCA/account-invoice-reporting/tree/11.0/base_comment_template + :target: https://github.com/OCA/account-invoice-reporting/tree/12.0/base_comment_template :alt: OCA/account-invoice-reporting .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/account-invoice-reporting-11-0/account-invoice-reporting-11-0-base_comment_template + :target: https://translation.odoo-community.org/projects/account-invoice-reporting-12-0/account-invoice-reporting-12-0-base_comment_template :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/94/11.0 + :target: https://runbot.odoo-community.org/runbot/94/12.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -50,7 +50,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -70,8 +70,10 @@ Contributors * Yannick Vaucher * Guewen Baconnier * Simone Rubino +* Simone Rubino +* `DynApps `_: -Do not contact contributors directly about support or help with technical issues. + * Raf Ven Maintainers ~~~~~~~~~~~ @@ -86,6 +88,6 @@ 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. -This module is part of the `OCA/account-invoice-reporting `_ project on GitHub. +This module is part of the `OCA/account-invoice-reporting `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_comment_template/__manifest__.py b/base_comment_template/__manifest__.py index 8ea1ace9..eaa2d8a9 100644 --- a/base_comment_template/__manifest__.py +++ b/base_comment_template/__manifest__.py @@ -1,15 +1,20 @@ # © 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": "11.0.1.0.0", - "depends": ["base"], - "author": "Camptocamp, Odoo Community Association (OCA)", - "license": "AGPL-3", - "data": ["views/comment_view.xml", - "security/ir.model.access.csv", - ], - "category": "Sale", - 'installable': True, - } +{ + "name": "Base Comments Templates", + "summary": "Comments templates on documents", + "version": "12.0.1.0.0", + "category": "Sale", + "website": "https://github.com/OCA/account-invoice-reporting", + "author": "Camptocamp, Odoo Community Association (OCA)", + "license": "AGPL-3", + "installable": True, + "depends": [ + "base" + ], + "data": [ + "security/ir.model.access.csv", + "views/comment_view.xml", + ], +} diff --git a/base_comment_template/models/__init__.py b/base_comment_template/models/__init__.py index fffa7ebd..4ad9af3c 100644 --- a/base_comment_template/models/__init__.py +++ b/base_comment_template/models/__init__.py @@ -1,5 +1,3 @@ -# Copyright 2014 Guewen Baconnier (Camptocamp SA) -# Copyright 2013-2014 Nicolas Bessi (Camptocamp SA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import comment diff --git a/base_comment_template/models/comment.py b/base_comment_template/models/comment.py index 2b8e9426..0cd33e26 100644 --- a/base_comment_template/models/comment.py +++ b/base_comment_template/models/comment.py @@ -9,14 +9,24 @@ class BaseCommentTemplate(models.Model): _name = "base.comment.template" _description = "Base comment template" - name = fields.Char('Comment summary', required=True) - position = fields.Selection([('before_lines', 'Before lines'), - ('after_lines', 'After lines')], - 'Position', - required=True, - default='before_lines', - help="Position on document") - text = fields.Html('Comment', translate=True, required=True) + name = fields.Char( + string='Comment summary', + required=True + ) + position = fields.Selection( + selection=[ + ('before_lines', 'Before lines'), + ('after_lines', 'After lines') + ], + required=True, + default='before_lines', + help="Position on document" + ) + text = fields.Html( + string='Comment', + translate=True, + required=True + ) @api.multi def get_value(self, partner_id=False): diff --git a/base_comment_template/readme/CONTRIBUTORS.rst b/base_comment_template/readme/CONTRIBUTORS.rst index f7f8aafd..ba762f7e 100755 --- a/base_comment_template/readme/CONTRIBUTORS.rst +++ b/base_comment_template/readme/CONTRIBUTORS.rst @@ -3,5 +3,7 @@ * Yannick Vaucher * Guewen Baconnier * Simone Rubino +* Simone Rubino +* `DynApps `_: -Do not contact contributors directly about support or help with technical issues. \ No newline at end of file + * Raf Ven diff --git a/base_comment_template/static/description/index.html b/base_comment_template/static/description/index.html index e475da09..134864b4 100644 --- a/base_comment_template/static/description/index.html +++ b/base_comment_template/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/account-invoice-reporting Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/account-invoice-reporting Translate me on Weblate Try me on Runbot

Add a new model to define templates of comments to print on documents.

Two positions are available for the comments: @@ -396,7 +396,7 @@ documents.

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -415,8 +415,12 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
  • Yannick Vaucher <yannick.vaucher@camptocamp.com>
  • Guewen Baconnier <guewen.baconnier@camptocamp.com>
  • Simone Rubino <simone.rubino@agilebg.com>
  • +
  • Simone Rubino <simone.rubino@agilebg.com>
  • +
  • DynApps: +
  • -

    Do not contact contributors directly about support or help with technical issues.

    Maintainers

    @@ -425,7 +429,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

    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.

    -

    This module is part of the OCA/account-invoice-reporting project on GitHub.

    +

    This module is part of the OCA/account-invoice-reporting project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

    diff --git a/base_comment_template/views/comment_view.xml b/base_comment_template/views/comment_view.xml index febb9abb..c0cf9174 100644 --- a/base_comment_template/views/comment_view.xml +++ b/base_comment_template/views/comment_view.xml @@ -2,49 +2,49 @@ - base.comment.template.search - base.comment.template - - - - - - + base.comment.template.search + base.comment.template + + + + + + - base.comment.template.form - base.comment.template - -
    - - - - - -
    -
    + base.comment.template.form + base.comment.template + +
    + + + + + +
    +
    - account.comment.template.list - base.comment.template - - - - - - - + account.comment.template.list + base.comment.template + + + + + + + - Comment Templates - ir.actions.act_window - base.comment.template - form - tree,form - + Comment Templates + ir.actions.act_window + base.comment.template + form + tree,form +