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
7 lines
200 B
Python
7 lines
200 B
Python
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()
|