Odoo Help


How to show Cost Price in Sales Order only to specific users

on 4/16/16, 1:24 PM 824 views

Hi,  I would like to show the field Cost Price in Sales Order only to specific users for example to users that have manager access rights to the sales application. Is this possible ? 


On 4/17/16, 8:55 AM

Hi Ahmed, thank you so much for your help. I did it as follow and it worked out fine:

1. Activate developer mode

2. Go to sales / sales order and create an order

3. from the debug view select: manage views

4. select: sale.order.form (external id. sale.view_order_form) and press edit

5. go down the list and find <field name='purchase_price'> there are two of them on both

6. click edit button in groups select sales / manager

7. close the windows

Logout and next time you login only user that are belonging to sales manager group will see the cost price in the sales order form.

--Ahmed M.Elmubarak--

Ahmed M.Elmubarak
On 4/17/16, 3:34 AM

Yes, you can ...

You just need to add "groups" attribute to your fields such as this line.

If the field already exists in a standard view. You need to inherit the view and add this attributes to your fields:

<field name="your_field" position="attributes">
    <attribute name="groups">Your_group_name</attribute>

Hope this could help

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

1 follower(s)


Asked: 4/16/16, 1:24 PM
Seen: 824 times
Last updated: 4/17/16, 8:55 AM