From 5d351305a5aff4612d3d10aacc8be4cf3a79ed96 Mon Sep 17 00:00:00 2001 From: GuillemCForgeFlow Date: Thu, 7 Nov 2024 12:33:11 +0100 Subject: [PATCH] [FIX]intrastat_product: use env in openupgrade `load_data` instead of cr As stated in https://github.com/OCA/openupgradelib/blob/master/openupgradelib/openupgrade.py#L297, the param should `env`, instead of the cursor --- intrastat_product/migrations/17.0.1.1.0/post-migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intrastat_product/migrations/17.0.1.1.0/post-migration.py b/intrastat_product/migrations/17.0.1.1.0/post-migration.py index a4a274b8..48c808d2 100644 --- a/intrastat_product/migrations/17.0.1.1.0/post-migration.py +++ b/intrastat_product/migrations/17.0.1.1.0/post-migration.py @@ -6,5 +6,5 @@ @openupgrade.migrate() def migrate(env, version): openupgrade.load_data( - env.cr, "intrastat_product", "migrations/17.0.1.1.0/noupdate_changes.xml" + env, "intrastat_product", "migrations/17.0.1.1.0/noupdate_changes.xml" )