菜单权限

This commit is contained in:
李鹏宇
2026-05-06 20:38:11 +08:00
parent f6c27743d0
commit 13e3097bba
4 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
]
},
'demo': [],
'depends': ['hr', 'mail', 'base', 'survey', 'account', 'hr_payroll'],
'depends': ['hr', 'mail', 'base', 'survey', 'account'],
'installable': True,
'application': True,
}
+1 -2
View File
@@ -1,11 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="0">
<!-- 从默认用户模板中移除财务管理员和薪资管理员权限组,新建用户不再默认带这些权限 -->
<!-- 从默认用户模板中移除财务管理员权限组,新建用户不再默认带这些权限 -->
<record id="base.default_user" model="res.users">
<field name="groups_id" eval="[
(3, ref('account.group_account_manager')),
(3, ref('account.group_account_invoice')),
(3, ref('hr_payroll.group_hr_payroll_manager')),
]"/>
</record>
</odoo>
+1
View File
@@ -14,6 +14,7 @@
'data': [
'security/ir.model.access.csv',
'security/salary_security_rule.xml',
'data/res_users_data.xml',
'data/rank_log_time.xml',
'data/meal_cron.xml',
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="0">
<!-- 从默认用户模板中移除薪资管理员权限组,新建用户不再默认带此权限 -->
<record id="base.default_user" model="res.users">
<field name="groups_id" eval="[(3, ref('hr_payroll.group_hr_payroll_manager'))]"/>
</record>
</odoo>