Skip to content

Commit

Permalink
🚑 access_apps: fix uninstall_hook
Browse files Browse the repository at this point in the history
  • Loading branch information
yelizariev committed Dec 18, 2023
1 parent a1a3ff0 commit 35bb4e5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions access_apps/hooks.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# Copyright 2021 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# Copyright 2021,2023 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# License MIT (https://opensource.org/licenses/MIT).
from odoo import SUPERUSER_ID, api


def uninstall_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
def uninstall_hook(env):
access = env.ref(
"base.access_ir_module_module_group_user", raise_if_not_found=False
)
Expand Down

0 comments on commit 35bb4e5

Please sign in to comment.