From 87b6af456b8e64f421f6db2e72935f1427ccd583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Wed, 2 Nov 2022 08:52:09 +0100 Subject: [PATCH] [FIX] base_comment_template: Add models text field to prevent error from ir.model model TT40209 --- base_comment_template/__manifest__.py | 2 +- .../i18n/base_comment_template.pot | 9 ++++ base_comment_template/i18n/es.po | 50 ++++++++--------- .../migrations/15.0.1.1.0/pre-migration.py | 23 ++++++++ .../models/base_comment_template.py | 53 ++++++++++++++++--- .../models/comment_template.py | 20 ++++--- .../tests/test_base_comment_template.py | 26 ++++++++- .../views/base_comment_template_view.xml | 8 +-- 8 files changed, 146 insertions(+), 45 deletions(-) create mode 100644 base_comment_template/migrations/15.0.1.1.0/pre-migration.py diff --git a/base_comment_template/__manifest__.py b/base_comment_template/__manifest__.py index 913a95af7..268afe5ae 100644 --- a/base_comment_template/__manifest__.py +++ b/base_comment_template/__manifest__.py @@ -5,7 +5,7 @@ "name": "Base Comments Templates", "summary": "Add conditional mako template to any report" "on models that inherits comment.template.", - "version": "15.0.1.0.0", + "version": "15.0.1.1.0", "category": "Reporting", "website": "https://github.com/OCA/reporting-engine", "author": "Camptocamp, Odoo Community Association (OCA)", diff --git a/base_comment_template/i18n/base_comment_template.pot b/base_comment_template/i18n/base_comment_template.pot index 4d66549d3..b1e62506b 100644 --- a/base_comment_template/i18n/base_comment_template.pot +++ b/base_comment_template/i18n/base_comment_template.pot @@ -6,6 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-03 08:01+0000\n" +"PO-Revision-Date: 2022-11-03 08:01+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -196,6 +198,7 @@ msgstr "" #. module: base_comment_template #: model:ir.model,name:base_comment_template.model_ir_model +#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template__models msgid "Models" msgstr "" @@ -256,6 +259,12 @@ msgstr "" msgid "Sequence" msgstr "" +#. module: base_comment_template +#: code:addons/base_comment_template/models/base_comment_template.py:0 +#, python-format +msgid "Some model (%s) not found" +msgstr "" + #. module: base_comment_template #: model:ir.model.fields,help:base_comment_template.field_res_partner__base_comment_template_ids #: model:ir.model.fields,help:base_comment_template.field_res_users__base_comment_template_ids diff --git a/base_comment_template/i18n/es.po b/base_comment_template/i18n/es.po index 29714bbf8..b6fd8b8fd 100644 --- a/base_comment_template/i18n/es.po +++ b/base_comment_template/i18n/es.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-02-09 09:55+0000\n" -"PO-Revision-Date: 2021-02-09 11:21+0100\n" +"POT-Creation-Date: 2022-11-03 08:01+0000\n" +"PO-Revision-Date: 2022-11-03 09:03+0100\n" "Last-Translator: Carlos \n" "Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" "Language: es\n" @@ -17,14 +17,14 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 2.0.6\n" +"X-Generator: Poedit 3.0.1\n" #. module: base_comment_template #: model_terms:ir.ui.view,arch_db:base_comment_template.base_comment_template_preview_form msgid "" " - + + @@ -24,7 +25,8 @@ - + + @@ -67,7 +69,7 @@ groups="base.group_multi_company" /> - +