This question has been flagged
2 Replies
6101 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

Avatar
Discard
Author Best Answer

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.




Avatar
Discard
Best Answer

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

Avatar
Discard