accountant_cn
This commit is contained in:
13
accountant_cn/hooks.py
Normal file
13
accountant_cn/hooks.py
Normal 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.")
|
||||
Reference in New Issue
Block a user