Odoo Help


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

Ali Ravani
on 7/30/13, 4:49 AM 2,923 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..


Hiral Patel (hip)

--Hiral Patel (hip)--
| 2 1 5
--Hiral Patel (hip)--

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


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.


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.


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)


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