资金管理权限
This commit is contained in:
@@ -15,18 +15,9 @@ class ResUsers(models.Model):
|
||||
# 新建用户后确保移除财务和薪资管理员权限组
|
||||
groups_to_remove = []
|
||||
group_refs = [
|
||||
# 财务相关群组
|
||||
'account.group_account_manager',
|
||||
'account.group_account_invoice',
|
||||
'account.group_account_user',
|
||||
'account.group_readonly',
|
||||
# 薪资相关群组
|
||||
'hr_payroll.group_hr_payroll_manager',
|
||||
'hr_payroll.group_hr_payroll_user',
|
||||
'yuthon_salary.group_jtbb_user', # 集团本部用户
|
||||
'yuthon_salary.group_wg_user', # 物管公司用户
|
||||
'yuthon_salary.group_lc_user', # 粮储公司用户
|
||||
'yuthon_salary.salary_rule_confirm_group', # 工资批次确认
|
||||
]
|
||||
for ref in group_refs:
|
||||
group = self.env.ref(ref, raise_if_not_found=False)
|
||||
|
||||
Reference in New Issue
Block a user