Files
dn20/accountant_cn/hooks.py
2026-11-17 17:57:08 +08:00

14 lines
398 B
Python

# -*- coding: utf-8 -*-
"""Post-install hook: give existing accounting administrators the full
accounting feature set (see models/account_groups.py for why Community needs
this)."""
import logging
_logger = logging.getLogger(__name__)
def post_init_hook(env):
env["res.groups"]._dn_ensure_accounting_feature_groups()
_logger.info("DN Accounting Menu: accounting group chain repaired.")