Odoo Help

0

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

By
Cidex
on 4/16/16, 1:24 PM 606 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 ? 

Thanks

0
Cidex
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.




0
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>
</field>

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.

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

1 follower(s)

Stats

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