跳至内容
菜单
此问题已终结
1 回复
4328 查看

How can I add a user group change with a new module?

I want to import the hr.payslip rights for read, write, create and delete in human ressource / employee.

see screenshots:


I need a module that adds this user right

形象
丢弃
最佳答案

Hi,

You can import access right base on file csv:

You create:

module_custom/security/ir.model.access.csv

add 'security/ir.model.access.csv' in data file openerp.

In file ir.model.access.csv:

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink

access_hr_payslip_group_user,hr_payslip.group_user,hr_payroll.model_hr_payslip,base.group_user,1,1,1,1


形象
丢弃
相关帖文 回复 查看 活动
0
8月 16
2922
4
1月 20
2896
0
8月 16
2871
1
9月 15
3411
0
8月 24
910