Odoo Help

0

'Cancle all' button that is visible to admin user only..

By
Ali Ravani
on 7/30/13, 4:49 AM 2,404 views

hello, i want to create a Button that only visible to ADMIN only. if other than admin logged in , the button would be INVISIBLE...

thanks a lot in advance

Regards, Ali..

2
Hiral Patel (hip)
On 7/30/13, 5:27 AM

Hello,

You can do like:

<button string="Cancel all" groups="base.group_erp_manager"/>

In groups you have to assign the group to whom you want to display button.

Thanks.

how to give access right programmatically...???

Ali Ravani
on 7/30/13, 7:28 AM

In xml add groups="base.group_erp_manager" to the button you have created. This group already exist so no need to add other code.

Hiral Patel (hip)
on 7/30/13, 8:01 AM

thanks a lot.....!!!!

Ali Ravani
on 7/30/13, 8:10 AM

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 7/30/13, 4:49 AM
Seen: 2404 times
Last updated: 3/16/15, 8:10 AM