From de8f58334de2bf04d0d6f65b67f69b3163e8cd39 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 22 Oct 2024 16:55:38 +0200 Subject: [PATCH] [UPD] #728 set portal user to noupdate --- bankayma_base/__manifest__.py | 3 ++- bankayma_base/data/res_users.xml | 4 ++++ bankayma_base/migrations/16.0.1.0.1/post-migration.py | 11 +++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 bankayma_base/data/res_users.xml create mode 100644 bankayma_base/migrations/16.0.1.0.1/post-migration.py diff --git a/bankayma_base/__manifest__.py b/bankayma_base/__manifest__.py index c2f52cd84..a8bc89a20 100644 --- a/bankayma_base/__manifest__.py +++ b/bankayma_base/__manifest__.py @@ -2,7 +2,7 @@ { "name": "BANKayma", "summary": "BANKayma base module", - "version": "16.0.1.0.0", + "version": "16.0.1.0.1", "development_status": "Alpha", "author": "Moshchot Coop", "license": "AGPL-3", @@ -62,6 +62,7 @@ "web_widget_pattern", ], "data": [ + "data/res_users.xml", "security/bankayma_base.xml", "security/ir.model.access.csv", "views/res_company.xml", diff --git a/bankayma_base/data/res_users.xml b/bankayma_base/data/res_users.xml new file mode 100644 index 000000000..77a1600f3 --- /dev/null +++ b/bankayma_base/data/res_users.xml @@ -0,0 +1,4 @@ + + + + diff --git a/bankayma_base/migrations/16.0.1.0.1/post-migration.py b/bankayma_base/migrations/16.0.1.0.1/post-migration.py new file mode 100644 index 000000000..284d3d374 --- /dev/null +++ b/bankayma_base/migrations/16.0.1.0.1/post-migration.py @@ -0,0 +1,11 @@ +from openupgradelib.openupgrade import migrate + + +@migrate() +def migrate(env, version=None): + env["ir.model.data"].search( + [ + ("module", "=", "base"), + ("name", "=", "template_portal_user_id"), + ] + ).noupdate = True