Odoo Help


5 Risposte
Nigel Canada
28/05/14, 12:41

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)



Niyas Raphy India

--Niyas Raphy--
| 7 7 11
Wayanad, Kerala, India
--Niyas Raphy--

Odoo Techno Functionalist

Feel free to connect :  niyasraphyk@gmail.com

LinkedIn: https://www.linkedin.com/in/niyasraphy/
Whatsapp : +917736136763
Happy to help :)

Niyas Raphy India
05/07/19, 23:14


For this you can activate the feature of the margins from the Sales -> Configuration -> Settings, then in the pricing section you can see the option  to activate the Margins. Once it is activated the field will be visible for all the users who have access to the sales. As you want to restrict the visibility of the field to certain group of users, what you can do is that, activate the developer mode and click the Edit form view option from the debugger button near logged in users name in the menu bar from the sale order form view.

Inside the View Architecture page or in inherited views tab, you can see the corresponding field. From here you can add a groups tag to the field and specify the id of the group users, for which the field has to be displayed. Once this is done, the field will be visible only for the users under the specified group.

<field name="test" groups="external_id_of_group"/>



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 Malesia
28/05/14, 11:42

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.

Fai una domanda
Keep Informed
2 follower(s)
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