fix: add stocktake and adjustment modules to role permission assignment UI

This commit is contained in:
DXC
2026-03-20 09:31:33 +08:00
parent 4223a95f10
commit b375cbfe25
2 changed files with 160 additions and 2 deletions

View File

@ -158,8 +158,9 @@ def create_app():
from app.services.permission_service import PermissionService
with app.app_context():
PermissionService.init_audit_menu()
PermissionService.init_stocktake_menus()
except Exception as e:
print(f"⚠️ 审计日志菜单初始化跳过: {e}")
print(f"⚠️ 菜单初始化跳过: {e}")
# -----------------------------------------------------
# 2.10 注册盘盈盘亏管理模块 (Stock Adjustment)