From 0d8cb8cfb2d05c548dc7a48de30402f1a440d4a9 Mon Sep 17 00:00:00 2001 From: Gorash Date: Thu, 25 Sep 2025 14:19:43 +0200 Subject: [PATCH] [IMP] base,all: remove deprecated 't-esc' ir.qweb directive --- src/util/release-note.xml | 2 +- src/util/report-migration.xml | 10 +++++----- src/util/report.py | 4 ++++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/util/release-note.xml b/src/util/release-note.xml index 8a7113e8f..64725a55a 100644 --- a/src/util/release-note.xml +++ b/src/util/release-note.xml @@ -6,7 +6,7 @@
- Meet Odoo . now ! + Meet Odoo . now !
diff --git a/src/util/report-migration.xml b/src/util/report-migration.xml index 389c6e320..5350eca2d 100644 --- a/src/util/report-migration.xml +++ b/src/util/report-migration.xml @@ -1,13 +1,13 @@ -

Congratulations, you have just upgraded to Odoo

+

Congratulations, you have just upgraded to Odoo

Here are changes that may impact day to day flows in this new version.

Want to know more? Check out the full functional release note.

Want to know more? Check out the full functional release note.


-

+

  • - +
    • - +     @@ -50,7 +50,7 @@ -
    • +
    diff --git a/src/util/report.py b/src/util/report.py index c2be17254..2dd965aba 100644 --- a/src/util/report.py +++ b/src/util/report.py @@ -130,6 +130,8 @@ def announce_release_note(cr): filepath = os.path.join(os.path.dirname(__file__), "release-note.xml") with open(filepath, "rb") as fp: contents = fp.read() + if not version_gte("15.0"): + contents = contents.replace(b"t-out", b"t-esc") report = lxml.etree.fromstring(contents) e = env(cr) major_version, minor_version = re.findall(r"\d+", release.major_version) @@ -151,6 +153,8 @@ def announce_migration_report(cr): contents = fp.read() if Markup: contents = contents.replace(b"t-raw", b"t-out") + if not version_gte("15.0"): + contents = contents.replace(b"t-out", b"t-esc") report = lxml.etree.fromstring(contents) e = env(cr) major_version, minor_version = re.findall(r"\d+", release.major_version)