from openupgradelib import openupgrade


@openupgrade.migrate(use_env=True)
def migrate(env, version):
    if not version:
        return

    # Associate already created toilets fund to new xml record
    covid_fund = env["product.template"].search(
        [("default_code", "=", "toilet")]
    )

    if covid_fund:
        openupgrade.add_xmlid(
            env.cr,
            "sponsorship_switzerland",
            "product_template_covid",
            "product.template",
            covid_fund.id,
        )

@@ -276,22 +276,27 @@
 , %22=%22, %22
-toilet
+coronavirus
 %22)%5D%0A    

Fix migration of covid product