From db57d0d995e75fcd1f8de209eec6b19c8c5c111d Mon Sep 17 00:00:00 2001 From: sergiocorato Date: Thu, 15 Feb 2024 16:03:25 +0100 Subject: [PATCH] =?UTF-8?q?[FIX]=20l10n=5Fit=5Fdelivery=5Fnote=20rimosso?= =?UTF-8?q?=20script=20di=20migrazione=20per=20campo=20non=20pi=C3=B9=20es?= =?UTF-8?q?istente=20is=5Fcarrier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/14.0.2.0.0/post-migration.py | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 l10n_it_delivery_note/migrations/14.0.2.0.0/post-migration.py diff --git a/l10n_it_delivery_note/migrations/14.0.2.0.0/post-migration.py b/l10n_it_delivery_note/migrations/14.0.2.0.0/post-migration.py deleted file mode 100644 index 1f37ba5ae1f0..000000000000 --- a/l10n_it_delivery_note/migrations/14.0.2.0.0/post-migration.py +++ /dev/null @@ -1,8 +0,0 @@ -from openupgradelib import openupgrade # pylint: disable=W7936 - - -@openupgrade.migrate() -def migrate(env, version): - carriers = env["stock.delivery.note"].search([]).mapped("carrier_id") - if carriers: - carriers.write({"is_carrier": True})