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 d7cdf5563938..49c340499a47 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 @@ -21,7 +21,6 @@ def migrate(env, version): vs v15 https://github.com/odoo/odoo/blob/3a28e5b0adbb36bdb1155a6854cdfbe4e7f9b187/addons/web/views/report_templates.xml#L319 """ # noqa: B950 for company in env["res.company"].search([]): - wizard = env["base.document.layout"].with_company(company).create({}) # 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 = '" + report_footer += "" # Add the extra text (if any) with a separating line if company.report_footer: report_footer += "
" + company.report_footer + company_details = env["base.document.layout"].with_company(company)._default_company_details() company.write( { "report_footer": report_footer, - "company_details": wizard.company_details, + "company_details": company_details, } )