Odoo Help


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.


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

Ali Ravani
on 7/30/13, 4:49 AM 1,802 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)--
Tiny ERP Pvt Ltd
| 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

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

0 follower(s)


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