From b69788a67bf905b8609fc5522558dff83e3e7fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Thu, 28 Nov 2024 14:13:52 +0100 Subject: [PATCH] [OU-FIX] web: Set the correct report_footer value Related to https://github.com/OCA/OpenUpgrade/pull/4095 TT52003 --- .../scripts/web/15.0.1.0/post-migration.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/openupgrade_scripts/scripts/web/15.0.1.0/post-migration.py b/openupgrade_scripts/scripts/web/15.0.1.0/post-migration.py index fcbf2c42f4f7..d7cdf5563938 100644 --- a/openupgrade_scripts/scripts/web/15.0.1.0/post-migration.py +++ b/openupgrade_scripts/scripts/web/15.0.1.0/post-migration.py @@ -22,9 +22,22 @@ def migrate(env, version): """ # noqa: B950 for company in env["res.company"].search([]): wizard = env["base.document.layout"].with_company(company).create({}) - report_footer = wizard.report_footer + # We define what the footer should have as it had v14 + # https://github.com/odoo/odoo/blob/cc0060e889603eb2e47fa44a8a22a70d7d784185/addons/web/views/report_templates.xml#L362 # noqa: B950 + report_footer = '" + # Add the extra text (if any) with a separating line if company.report_footer: - report_footer += company.report_footer + report_footer += "
" + company.report_footer company.write( { "report_footer": report_footer,