Odoo Help


Display Margin in Sales Order for Select Group?

Damian Phang
on 5/26/14, 8:21 PM 3,025 views

How do I go about allowing Margin in Sales order to be displayed only to select group of users? I don't want every single person with access to the sales module to be able to see the margin in a sales.

You can turn it off for everybody in the company by deticking Settings --> Configuration --> Sales --> Quotations and Sales Orders -- Sale Features -- Display margin on sales orders (I do not have enough "Karma" to post the screenshot unfortunately)

Denise van der Linden
on 10/22/14, 6:37 PM
On 5/28/14, 12:41 PM

I am not sure, but you might need to add access to: product.pricelist.type, product.pricelist.item, product.pricelist.version and product.price.type

It is a matter of figuring out which access rights are needed and adding those to a new custom group. I am just going based on analysis between the Sales / User and Sales / Manager access rights. To know what is required for sure, look at the source for the sale_margin module.

The module installer indicates you might need to grant access to these views:

Created Views

* INHERIT sale.order.line.margin.view.form (form)
* INHERIT sale.order.line.tree.margin.view.form (form)
* INHERIT sale.order.margin.view.form (form)



You need to extend the sales view form and add the group to the margin field xml tag. You can create a module to add  that functionality.

Damian Phang
On 5/28/14, 11:42 AM

Bumping this. Would really like to be able to allow sales margin to be seen by certain group only and not by the whole company.

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

2 follower(s)


Asked: 5/26/14, 8:21 PM
Seen: 3025 times
Last updated: 1/3/16, 11:59 AM