accountant_cn

This commit is contained in:
2026-11-17 17:57:08 +08:00
parent 9b924747c5
commit 5fc4382687
771 changed files with 18102 additions and 820280 deletions

13
accountant_cn/hooks.py Normal file
View File

@@ -0,0 +1,13 @@
# -*- 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.")