From 82488b191eb2b71ec2fc7491cf364ca7e8404680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Wed, 9 Oct 2024 09:43:21 +0200 Subject: [PATCH 1/2] [IMP] report_qweb_parameter: Remove warning Found deprecated directive @t-raw WARNING devel odoo.addons.base.models.ir_qweb: Found deprecated directive @t-raw='docs.env["ir.qweb"].check_length(docs[0].vat, 10, False)[:10]' in template 237. Replace by @t-out, and explicitely wrap content in `Markup` if necessary (which likely is not the case) WARNING devel odoo.addons.base.models.ir_qweb: Found deprecated directive @t-raw='docs.env["ir.qweb"].check_length(docs[0].company_registry, False, 10)' in template 237. Replace by @t-out, and explicitely wrap content in `Markup` if necessary (which likely is not the case) --- report_qweb_parameter/demo/test_report_field_length.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report_qweb_parameter/demo/test_report_field_length.xml b/report_qweb_parameter/demo/test_report_field_length.xml index d786acce7..774f426cc 100644 --- a/report_qweb_parameter/demo/test_report_field_length.xml +++ b/report_qweb_parameter/demo/test_report_field_length.xml @@ -25,13 +25,13 @@ name="raw_length" t-minlength="10" t-length="10" - t-raw="docs[0].vat" + t-out="docs[0].vat" t-if="docs[0].vat" />
  • Date: Wed, 9 Oct 2024 09:50:25 +0200 Subject: [PATCH 2/2] [IMP] report_qweb_parameter: pre-commit Execute pre-commit to remove the existing warning. WARNING prod py.warnings: /opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_module.py:178: DeprecationWarning: XML declarations in HTML module descriptions are deprecated since Odoo 17, report_qweb_parameter can just have a UTF8 description with not need for a declaration. --- report_qweb_parameter/readme/CONTRIBUTORS.md | 14 +++++++------- .../static/description/index.html | 1 - 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/report_qweb_parameter/readme/CONTRIBUTORS.md b/report_qweb_parameter/readme/CONTRIBUTORS.md index 79e4ef0f2..98599aa29 100644 --- a/report_qweb_parameter/readme/CONTRIBUTORS.md +++ b/report_qweb_parameter/readme/CONTRIBUTORS.md @@ -1,7 +1,7 @@ -- Enric Tobella \<\> - -- [Tecnativa](https://www.tecnativa.com): - - > - Carlos Roca - -- Iván Antón \<\> +- Enric Tobella \<\> + +- [Tecnativa](https://www.tecnativa.com): + + > - Carlos Roca + +- Iván Antón \<\> diff --git a/report_qweb_parameter/static/description/index.html b/report_qweb_parameter/static/description/index.html index 7d69cf6f1..33c3307f3 100644 --- a/report_qweb_parameter/static/description/index.html +++ b/report_qweb_parameter/static/description/index.html @@ -1,4 +1,3 @@ -