Odoo Help

Welcome!

This community 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.

0

Limit products to company assigned to user in multi-company Odoo 9

By
Rodrigo Escandón Cesarman
on 5/28/16, 11:21 AM 749 views

I have a multi-company setup in Odoo, and I would like to limit the products that each user (under the group "User") can access (read/write/create/delete) to the products assigned to the company that the user is assigned to.

To be clear, I have:

Companies:

  • Company A

  • Company B

Users:

  • User A (assigned to "Company A" and user group "User")

  • User B (assigned to "Company B" and user group "User")

Products:

  • Product A (assigned to "Company A")

  • Product B (assigned to "Company B")

With the default setup, User A has access to both Product A and Product B, and I would like user A to have access exclusively to product A, on all modules (Sales, Inventory, POS…)

I believe that is possible to accomplish using Record Rules, but I haven't been able to do it.

1
Jerome Guerriat
On 5/29/16, 12:48 PM

There already is a product.product multicompany rule (but it is inactive by default): "Product multi-company"

xml id: product.product_comp_rule


You can active it by going to settings => general settings.
Check "manage multi company", then uncheck "share product to all companies"

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 5/28/16, 11:21 AM
Seen: 749 times
Last updated: 6/13/16, 2:18 AM