Skip to content

Commit

Permalink
[MIG] base_comment_template: Migration to 15.0
Browse files Browse the repository at this point in the history
TT35696
  • Loading branch information
alan196 authored and victoralmau committed Sep 2, 2022
1 parent d7af9f0 commit 6600caa
Show file tree
Hide file tree
Showing 28 changed files with 119 additions and 405 deletions.
18 changes: 11 additions & 7 deletions base_comment_template/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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%2Freporting--engine-lightgray.png?logo=github
:target: https://github.com/OCA/reporting-engine/tree/14.0/base_comment_template
:target: https://github.com/OCA/reporting-engine/tree/15.0/base_comment_template
:alt: OCA/reporting-engine
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/reporting-engine-14-0/reporting-engine-14-0-base_comment_template
:target: https://translation.odoo-community.org/projects/reporting-engine-15-0/reporting-engine-15-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/143/14.0
:target: https://runbot.odoo-community.org/runbot/143/15.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand Down Expand Up @@ -83,7 +83,7 @@ Usage
You should have at least one template with Default field set, if you choose a Partner the template is deselected as a Default one.
If you create a new template with the same configuration (Model, Domain, Position) and set it as Default, the previous one will be deselected as a default one.

The template is a html field which will be rendered just like a mail template, so you can use variables like ${object}, ${user}, ${ctx} to add dynamic content.
The template is a html field which will be rendered just like a mail template, so you can use variables like {{object}}, {{user}}, {{ctx}} to add dynamic content.

Change the report related to the model from configuration and add a statement like:

Expand All @@ -103,7 +103,7 @@ You should always use t-if since the method returns False if no template is foun
If you want to use Qweb templates, or different context, you can specify it just like in
mail.render.mixin with parameters:

- engine: "jinja" or "qweb",
- engine: "inline_template", "qweb" or "qweb_view",
- add_context: dict with your own context,
- post_process: perform a post processing on rendered result

Expand All @@ -120,7 +120,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/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 <https://github.com/OCA/reporting-engine/issues/new?body=module:%20base_comment_template%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20base_comment_template%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Expand Down Expand Up @@ -158,6 +158,10 @@ Contributors
* Carlos Roca
* Víctor Martínez

* `Jarsa <https://www.jarsa.com>`_:

* Alan Ramos <[email protected]>

Maintainers
~~~~~~~~~~~

Expand All @@ -171,6 +175,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/reporting-engine <https://github.com/OCA/reporting-engine/tree/14.0/base_comment_template>`_ project on GitHub.
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/15.0/base_comment_template>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 2 additions & 1 deletion base_comment_template/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models, wizard
from . import models
from . import wizard
2 changes: 1 addition & 1 deletion base_comment_template/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Base Comments Templates",
"summary": "Add conditional mako template to any report"
"on models that inherits comment.template.",
"version": "14.0.3.0.1",
"version": "15.0.1.0.0",
"category": "Reporting",
"website": "https://github.com/OCA/reporting-engine",
"author": "Camptocamp, Odoo Community Association (OCA)",
Expand Down
23 changes: 0 additions & 23 deletions base_comment_template/i18n/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -344,26 +344,3 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:base_comment_template.base_comment_template_preview_form
msgid "record:"
msgstr ""

#~ msgid "After lines"
#~ msgstr "Suffix"

#~ msgid "Base comment template"
#~ msgstr "Textbausteinvorlage"

#~ msgid "Before lines"
#~ msgstr "Präfix"

#~ msgid "Comment summary"
#~ msgstr "Textbaustein-Zusammenfassung"

#~ msgid "Conditions template"
#~ msgstr "Textbausteinvorlage"

#~ msgid "If set, it'll only be available for this company"
#~ msgstr ""
#~ "Wenn der Haken gesetzt ist, ist die Vorlage nur das gesetzte Unternehmen "
#~ "verfügbar."

#~ msgid "Position"
#~ msgstr "Position"
29 changes: 0 additions & 29 deletions base_comment_template/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -355,32 +355,3 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:base_comment_template.base_comment_template_preview_form
msgid "record:"
msgstr ""

#~ msgid "After lines"
#~ msgstr "Después de las líneas"

#~ msgid "Before lines"
#~ msgstr "Antes de las líneas"

#~ msgid "Priority"
#~ msgstr "Prioridad"

#~ msgid ""
#~ "There are other records with same models, priority, domain and position."
#~ msgstr ""
#~ "Hay otros registros con los mismos datos en modelo, prioridad, dominio y "
#~ "posición."

#~ msgid "the highest priority = the smallest number"
#~ msgstr "Mayor prioridad = número menor"

#~ msgid "Comment summary"
#~ msgstr "Índice de comentarios"

#, fuzzy
#~| msgid "Comment Templates"
#~ msgid "Conditions template"
#~ msgstr "Plantillas de comentarios"

#~ msgid "Position"
#~ msgstr "Posició"
19 changes: 0 additions & 19 deletions base_comment_template/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -342,22 +342,3 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:base_comment_template.base_comment_template_preview_form
msgid "record:"
msgstr ""

#~ msgid "After lines"
#~ msgstr "Après les lignes"

#~ msgid "Base comment template"
#~ msgstr "Modèle de textes de commentaires"

#~ msgid "Before lines"
#~ msgstr "Avant les lignes"

#~ msgid "Comment summary"
#~ msgstr "Nom"

#, fuzzy
#~ msgid "Conditions template"
#~ msgstr "Modèles de commentaires"

#~ msgid "Position"
#~ msgstr "Position"
19 changes: 0 additions & 19 deletions base_comment_template/i18n/gl.po
Original file line number Diff line number Diff line change
Expand Up @@ -343,22 +343,3 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:base_comment_template.base_comment_template_preview_form
msgid "record:"
msgstr ""

#~ msgid "After lines"
#~ msgstr "Despois das liñas"

#~ msgid "Base comment template"
#~ msgstr "Modelo do comentario base"

#~ msgid "Before lines"
#~ msgstr "Antes das liñas"

#~ msgid "Comment summary"
#~ msgstr "Índice de comentarios"

#, fuzzy
#~ msgid "Conditions template"
#~ msgstr "Modelos de comentarios"

#~ msgid "Position"
#~ msgstr "Posición"
18 changes: 0 additions & 18 deletions base_comment_template/i18n/hr.po
Original file line number Diff line number Diff line change
Expand Up @@ -345,21 +345,3 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:base_comment_template.base_comment_template_preview_form
msgid "record:"
msgstr ""

#~ msgid "After lines"
#~ msgstr "Iza linija"

#~ msgid "Base comment template"
#~ msgstr "Osnovni Predložak komentara"

#~ msgid "Before lines"
#~ msgstr "Ispred linija"

#~ msgid "Comment summary"
#~ msgstr "Sažetak komentara"

#~ msgid "Conditions template"
#~ msgstr "Predložak uvjeta"

#~ msgid "Position"
#~ msgstr "Pozicija"
3 changes: 0 additions & 3 deletions base_comment_template/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,3 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:base_comment_template.base_comment_template_preview_form
msgid "record:"
msgstr ""

#~ msgid "Position"
#~ msgstr "Posizione"
19 changes: 0 additions & 19 deletions base_comment_template/i18n/ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -343,22 +343,3 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:base_comment_template.base_comment_template_preview_form
msgid "record:"
msgstr ""

#~ msgid "After lines"
#~ msgstr "明細行後"

#~ msgid "Base comment template"
#~ msgstr "Base comment template"

#~ msgid "Before lines"
#~ msgstr "明細行前"

#~ msgid "Comment summary"
#~ msgstr "コメントサマリ"

#, fuzzy
#~ msgid "Conditions template"
#~ msgstr "コメントテンプレート"

#~ msgid "Position"
#~ msgstr "位置"
21 changes: 0 additions & 21 deletions base_comment_template/i18n/pt.po
Original file line number Diff line number Diff line change
Expand Up @@ -356,24 +356,3 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:base_comment_template.base_comment_template_preview_form
msgid "record:"
msgstr ""

#~ msgid "After lines"
#~ msgstr "Após as linhas"

#~ msgid "Base comment template"
#~ msgstr "Modelo de Comentários Base"

#~ msgid "Before lines"
#~ msgstr "Antes das Linhas"

#~ msgid "Comment summary"
#~ msgstr "Resumo de comentário"

#~ msgid "Conditions template"
#~ msgstr "Modelos de condições"

#~ msgid "If set, it'll only be available for this company"
#~ msgstr "Se assinalado, só estará disponível para esta empresa"

#~ msgid "Position"
#~ msgstr "Posição"
21 changes: 0 additions & 21 deletions base_comment_template/i18n/pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -344,24 +344,3 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:base_comment_template.base_comment_template_preview_form
msgid "record:"
msgstr ""

#~ msgid "After lines"
#~ msgstr "Depois das linhas"

#~ msgid "Base comment template"
#~ msgstr "Modelo de comentário Base"

#~ msgid "Before lines"
#~ msgstr "Antes das linhas"

#~ msgid "Comment summary"
#~ msgstr "Índice de comentários"

#~ msgid "Conditions template"
#~ msgstr "Modelos de condições"

#~ msgid "If set, it'll only be available for this company"
#~ msgstr "Se definido, ele estará disponível apenas para esta empresa"

#~ msgid "Position"
#~ msgstr "Posição"
21 changes: 0 additions & 21 deletions base_comment_template/i18n/pt_PT.po
Original file line number Diff line number Diff line change
Expand Up @@ -344,24 +344,3 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:base_comment_template.base_comment_template_preview_form
msgid "record:"
msgstr ""

#~ msgid "After lines"
#~ msgstr "Após as linhas"

#~ msgid "Base comment template"
#~ msgstr "Modelo de comentários base"

#~ msgid "Before lines"
#~ msgstr "Antes das linhas"

#~ msgid "Comment summary"
#~ msgstr "Resumo de comentários"

#~ msgid "Conditions template"
#~ msgstr "Modelo de condições"

#~ msgid "If set, it'll only be available for this company"
#~ msgstr "Se assinalado, será apenas visível para esta empresa"

#~ msgid "Position"
#~ msgstr "Posição"
21 changes: 0 additions & 21 deletions base_comment_template/i18n/sk.po
Original file line number Diff line number Diff line change
Expand Up @@ -343,24 +343,3 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:base_comment_template.base_comment_template_preview_form
msgid "record:"
msgstr ""

#~ msgid "After lines"
#~ msgstr "Za položkami"

#~ msgid "Base comment template"
#~ msgstr "Základná šablóna komentárov"

#~ msgid "Before lines"
#~ msgstr "Pred položkami"

#~ msgid "Comment summary"
#~ msgstr "Názov"

#~ msgid "Conditions template"
#~ msgstr "Predvolená šablóna"

#~ msgid "If set, it'll only be available for this company"
#~ msgstr "Ak je nastavená, bude k dispozícii iba pre túto spoločnosť"

#~ msgid "Position"
#~ msgstr "Pozícia"
19 changes: 0 additions & 19 deletions base_comment_template/i18n/sl.po
Original file line number Diff line number Diff line change
Expand Up @@ -344,22 +344,3 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:base_comment_template.base_comment_template_preview_form
msgid "record:"
msgstr ""

#~ msgid "After lines"
#~ msgstr "Po postavkah"

#~ msgid "Base comment template"
#~ msgstr "Osnovna predloga za komentarje"

#~ msgid "Before lines"
#~ msgstr "Pred postavkami"

#~ msgid "Comment summary"
#~ msgstr "Povzetek komentarjev"

#, fuzzy
#~ msgid "Conditions template"
#~ msgstr "Predloge komentarjev"

#~ msgid "Position"
#~ msgstr "Položaj"
29 changes: 0 additions & 29 deletions base_comment_template/migrations/14.0.2.0.0/post-migration.py

This file was deleted.

Loading

0 comments on commit 6600caa

Please sign in to comment.