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

I'm using Odoo 18 with a multi-company setup:

  • Main company (NBS COMPANY) has its own warehouse (WH №1​).
  • A branch company also has its own warehouse.
  • I created an internal user assigned only to the branch company (not the main company).

When the user tries to update On Hand Quantity in their branch warehouse, they get this error:

Uh-oh! Looks like you have stumbled upon some top-secret records.

Sorry, User (id=2) doesn't have 'read' access to:
- Inventory Locations, WH №1/Stock (stock.location: 8, company=NBS COMPANY)

Blame the following rules:
- Location multi-company

If you really, really need access, perhaps you can win over your friendly administrator with a batch of freshly baked cookies. This seems to be a multi-company issue, you might be able to access the record by switching to the company: NBS COMPANY."

This seems to be related to Odoo's multi-company access rules, but I don't understand why it's referencing the main company's warehouse when the user is working in the branch.

The error disappears if I assign the user access to both companies, but I want to avoid giving them access to the main company.

How can I:

  • Restrict the user to the branch only,
  • But still allow them to update stock in their own warehouse,
  • Without access to the main company's data?

Thanks!

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

This behavior can not be reproduced in https://demo.odoo.com given this limited information. You will need to investigate your Warehouse, Location and Operation Type configuration, specifically about the Company assigned to each and whether the related records are assigned to the same Company.

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 15
3428
1
يونيو 20
3992
1
أغسطس 16
10414
0
مارس 15
4637
2
مارس 15
9394