Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/util/release-note.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<t t-if="odoo_showcase_video_id">
<br/>
<a t-attf-href="https://www.youtube.com/watch?v={{ odoo_showcase_video_id }}" target="_blank">
<b>Meet Odoo <t t-esc="major_version"/>.<t t-esc="minor_version"/> now !</b>
<b>Meet Odoo <t t-out="major_version"/>.<t t-out="minor_version"/> now !</b>
<div class="card shadow-sm yt-container" style="max-height: 360px; max-width: 640px">
<img t-attf-src="https://img.youtube.com/vi/{{ odoo_showcase_video_id }}/maxresdefault.jpg"/>
</div>
Expand Down
10 changes: 5 additions & 5 deletions src/util/report-migration.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0"?>
<t t-name="mail.report_migration">
<h2> Congratulations, you have just upgraded to Odoo <t t-esc="version" /> </h2>
<h2> Congratulations, you have just upgraded to Odoo <t t-out="version" /> </h2>
<p> Here are changes that may impact day to day flows in this new version. </p>
<p t-if="int(minor_version) == 0">Want to know more? Check out the full functional <a t-attf-href="https://www.odoo.com/odoo-{{ major_version }}-release-notes">release note</a>.</p>
<p t-elif="int(minor_version) >= 0">Want to know more? Check out the full functional <a t-attf-href="https://www.odoo.com/odoo-{{ major_version }}-{{ minor_version }}-release-notes">release note</a>.</p>
<p t-else=""></p>
<br/>
<t t-foreach="messages" t-as="category">
<h3><t t-esc="category"/></h3>
<h3><t t-out="category"/></h3>
<ul>
<t t-if="category in ['Disabled views', 'Overridden views']">
<t t-set="view_message_types" t-value="{
Expand All @@ -17,14 +17,14 @@
<t t-set="message_type" t-value="view_message_types[category]"/>
<li><details t-if="messages[category]">
<summary>
<t t-esc="message_type[0]"/>
<t t-out="message_type[0]"/>
</summary>
<ul>
<t t-foreach="messages[category]" t-as="message">
<t t-set="view" t-value="message[0]"/>
<li>
<t t-if="view.get('copy_id')">
<t t-esc="message_type[1] % view"/>
<t t-out="message_type[1] % view"/>
&amp;nbsp;
<t t-raw="get_anchor_link_to_record('ir.ui.view', view['id'], 'Original', action_id=action_view_id)"/>
&amp;nbsp;
Expand All @@ -50,7 +50,7 @@
</t>
<t t-else="">
<t t-foreach="messages[category]" t-as="message">
<li><t t-if="message[1]" t-raw="message[0]" /><t t-else="" t-esc="message[0]" /></li>
<li><t t-if="message[1]" t-raw="message[0]" /><t t-else="" t-out="message[0]" /></li>
</t>
</t>
</ul>
Expand Down
4 changes: 4 additions & 0 deletions src/util/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,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)
Expand All @@ -149,6 +151,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)
Expand Down