Skip to content

Commit

Permalink
Merge pull request OCA#4355 from Tecnativa/16.0
Browse files Browse the repository at this point in the history
[16.0][OU-FIX] digest: Load upstream latest template
  • Loading branch information
pedrobaeza authored Mar 16, 2024
2 parents 6ed0075 + da1b868 commit 5cb76b4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<template id="digest_mail_layout">
<!-- <template id="digest_mail_layout">
&lt;!DOCTYPE html&gt;
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="format-detection" content="telephone=no"/><meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;"/><meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE"/><style type="text/css"><t t-set="company_color" t-value="company.secondary_color or '#875a7b'"/>
body {
Expand Down Expand Up @@ -312,7 +312,7 @@
}
}
</style></head><body><t t-out="body"/></body></html>
</template>
</template> -->
<template id="digest_section_mobile">
<div class="global_layout" style="overflow: auto;">
<div style="width: 50%; float: left; text-align: right;">
Expand Down
3 changes: 3 additions & 0 deletions openupgrade_scripts/scripts/digest/16.0.1.1/post-migration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright 2023 ACSONE SA/NV
# Copyright 2024 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openupgradelib import openupgrade
Expand All @@ -18,3 +19,5 @@
def migrate(env, version):
openupgrade.load_data(env.cr, "digest", "16.0.1.1/noupdate_changes.xml")
openupgrade.delete_record_translations(env.cr, "digest", _translations_to_delete)
# Restore the noupdate=1 after forcing the update of upstream code content
openupgrade.set_xml_ids_noupdate_value(env, "digest", ["digest_mail_layout"], True)
10 changes: 10 additions & 0 deletions openupgrade_scripts/scripts/digest/16.0.1.1/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2024 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
# Switch to noupdate=0 for getting the current v16 arch, for switching in post again
openupgrade.set_xml_ids_noupdate_value(env, "digest", ["digest_mail_layout"], False)

0 comments on commit 5cb76b4

Please sign in to comment.