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,