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

HR security

By
Gaavilan
on 11/8/16, 5:41 AM 84 views

Hi, I tried for overriding access of user groups for my custom addon.

But It raising error like no reference for hr.payslip is there. Please help me.

Thanks In advance

Hey Gavilaan,

Could you please provide your overrided code here?

Nilmar Shereef
on 11/8/16, 11:02 PM

Thanks Nilmar for your helping mentality.

Here my writing is :

addons_wrk_hr_payslip,hr.payslip,hr.model_hr_payslip,base.group_user,1,1,0,0

Gaavilan
on 11/8/16, 11:10 PM
2

Nilmar Shereef

--Nilmar Shereef--
811
| 4 3 7
Calicut, India
--Nilmar Shereef--

Python Developer. Android Developer. .Net Developer

Nilmar Shereef
On 11/8/16, 11:13 PM

Hi,
I think "hr.payslip" model is not inside of hr, Please try by changing hr to "hr_payroll" in model reference overriding.
Replace your security overriding as below.

addons_wrk_hr_payslip,hr.payslip,hr_payroll.model_hr_payslip,base.group_user,1,1,0,0


NILMAR,

You perfect.

Thank you with open heart.

Gaavilan
on 11/8/16, 11:33 PM

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: 11/8/16, 5:41 AM
Seen: 84 times
Last updated: 11/8/16, 11:27 PM