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

user have access only as warehouse manager ,how to disable inventory tab update button in product form login as warehouse manage

By
veena vasudevan
on 1/6/14, 5:12 AM 1,600 views

user have access only as warehouse manager ,how to disable update button in inventory tab in product form login as warehouse manager

1
Abhishek
On 1/6/14, 5:51 AM

HI Veena,

You may restrict a button , field and other form contents with using the group attribute in that field/button, So only a provided group or groups may see or not see that field/button in the xml view of model, according to your provided condition in the xml code.

I am going to give you a sample example for this maybe it will help ... ""<button name="action_draft" states="done" string="Set to Draft" type="object" icon="gtk-convert" groups="account.group_account_manager"/> ""

here only the person or users belong to this group account_manager will have access to this button. Similarly you can go for your requirement. Hope it will help.

where we write this code

veena vasudevan
on 1/7/14, 12:44 AM

This is just a sample line code you may also use similar code ""group attribute with your button field in xml.

Abhishek
on 1/7/14, 4:48 AM

only the admin wants to enable the update button

veena vasudevan
on 1/21/14, 11:55 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

0 follower(s)

Stats

Asked: 1/6/14, 5:12 AM
Seen: 1600 times
Last updated: 3/16/15, 8:10 AM