feat(fusion_accounting_core): add computed coexistence group + recompute hooks

group_fusion_show_when_enterprise_absent has membership = all internal
users iff no Enterprise accounting module is installed. Membership is
recomputed on module install/uninstall via overrides on ir.module.module.
Used by Phase 1 fusion_bank_rec menus to auto-hide when Enterprise is
active and auto-appear after Enterprise uninstall.

Made-with: Cursor
This commit is contained in:
gsinghpal
2026-04-19 10:02:19 -04:00
parent 3f4fdeffce
commit 78a481f3f4
8 changed files with 111 additions and 1 deletions

View File

@@ -1 +1,6 @@
from . import models
def post_init_hook(env):
"""Initialize coexistence group membership based on current Enterprise install state."""
env['res.users']._fusion_recompute_coexistence_group()