From 2d1d27e550897a0fc7f704774a916b463eceba99 Mon Sep 17 00:00:00 2001 From: default Date: Mon, 27 May 2024 02:11:12 +0000 Subject: [PATCH] [FIX] sudo --- crock_base/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crock_base/hooks.py b/crock_base/hooks.py index c48d1ca..43a31ac 100644 --- a/crock_base/hooks.py +++ b/crock_base/hooks.py @@ -12,7 +12,7 @@ _logger = logging.getLogger(__name__) def post_init_hook(cr, registry): env = Environment(cr, SUPERUSER_ID, {}) - env.sudo().ref("base.main_partner").write( + env.ref("base.main_partner").write( { "association": True, "ffck_network": True,