Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to add user rights to a new module.

By
wizardz
on 10/13/16, 4:45 AM 219 views

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

0
Vo Tri
On 10/13/16, 5:23 AM

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


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/13/16, 4:45 AM
Seen: 219 times
Last updated: 10/13/16, 5:23 AM