From 9796f16400e0e654e40491b7252dea7d90aae1c0 Mon Sep 17 00:00:00 2001 From: "robin.keunen" Date: Tue, 8 Mar 2022 18:01:29 +0100 Subject: [PATCH] fixup! [MIG] rename deprecated modules script --- rename_deprecated_modules.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rename_deprecated_modules.py b/rename_deprecated_modules.py index 0be5dd906..ca806e58e 100644 --- a/rename_deprecated_modules.py +++ b/rename_deprecated_modules.py @@ -7,12 +7,13 @@ _logger = logging.getLogger(__name__) -env = env # noqa F821 undefined name 'env' +# undefined name 'env' +env = env # noqa: F821 renamed_modules = { "easy_my_coop": "cooperator", } -logging.info("rename easy_my_coop_x modules to cooperator_x") +_logger.info("rename easy_my_coop_x modules to cooperator_x") openupgrade.update_module_names(env.cr, renamed_modules.items()) env.cr.commit()