تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
9971 أدوات العرض

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.

الصورة الرمزية
إهمال
أفضل إجابة

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"

الصورة الرمزية
إهمال

How do we find this field? We can't see it

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
نوفمبر 21
2737
1
يونيو 20
11676
0
يوليو 24
3
1
سبتمبر 21
2850
4
فبراير 18
7234