Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

Odoo multi-company error: user cannot access stock location when updating On Hand Quantity

Odoberať

Get notified when there's activity on this post

This question has been flagged
stockwarehouseinventorystock_locationMulti-company
1 Odpoveď
944 Zobrazenia
Avatar
Mirodil Ortikov

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!

0
Avatar
Zrušiť
Christoph Farnleitner

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.

Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,


The error you’re facing is caused by Odoo’s multi-company access rules. In a multi-company setup, every warehouse location (stock, scrap, inventory adjustment, etc.) is linked to a specific company. The security rule “Location multi-company” prevents users from seeing or using locations that belong to companies they don’t have access to. When your branch user tries to update On Hand Quantity, Odoo internally creates stock moves between the warehouse and special virtual locations. If one of those virtual locations (such as “Inventory Adjustment” or “Scrap”) is tied to the main company, Odoo will block the operation because the branch user doesn’t have access rights to that company.


This explains why the system is referencing the main company’s warehouse (NBS COMPANY) even though the user is working in the branch. The process of adjusting inventory isn’t just about the branch warehouse; it also involves virtual locations, and if those are not set up per company, Odoo ends up pointing to the wrong one. That’s why the error disappears when you give the user access to both companies: they suddenly have permission to see the main company’s locations. But that also means they can see data you don’t want them to, which breaks the principle of separation between companies.


The correct solution is not to expand the user’s company access, but to fix the location ownership. Each company in Odoo should have its own complete set of stock locations: Stock, Input, Output, Inventory Adjustment, and Scrap. If your branch company’s warehouse is using adjustment or scrap locations that still belong to the main company, you need to duplicate those locations, assign them to the branch company, and update the warehouse and routes to use the branch-owned versions. That way, when branch users adjust stock, all moves stay within the scope of the branch company, and the security rules are respected.


Once you ensure that every warehouse and virtual location is properly assigned to the correct company, your branch users will be able to update On Hand Quantity freely in their own warehouse, without ever touching records from the main company. This keeps data isolated per company and removes the need to grant unnecessary access to NBS COMPANY.


Hope it helps

0
Avatar
Zrušiť
Mirodil Ortikov
Autor

Hello, thanks for your answer. I've checked locations and found out that each company has its own locations set I guess.
Location | Location Type | Company
----------------------------------------|------------------|-------------
Partners | View |
Partners/Customers | Customer Location|
Partners/Vendors | Vendor Location |
Physical Locations | View |
Virtual Locations | View |
Virtual Locations/Inter-company transit | Transit Location |
Virtual Locations/Inventory adjustment | Inventory Loss | NBS
Virtual Locations/Inventory adjustment | Inventory Loss | ARK
Virtual Locations/Production | Production | NBS
Virtual Locations/Production | Production | ARK
Virtual Locations/Scrap | Inventory Loss | NBS
Virtual Locations/Scrap | Inventory Loss | ARK
WH №1 | View | NBS
WH №1/Stock | Internal Location| NBS
WHARK | View | ARK
WHARK/Stock | Internal Location| ARK

NBS is main company and ARK is the branch of NBS

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrácia
Related Posts Replies Zobrazenia Aktivita
Need to find product quantities in locations to create draft delivery order
stock warehouse stock_location
Avatar
0
mar 15
3863
External data integration for stock & quantity on hand
stock warehouse integration inventory
Avatar
Avatar
1
jún 20
4617
What are chaining types and chained locations in OpenERP warehouse management ?
stock warehouse inventory location
Avatar
Avatar
1
aug 16
11134
How to calculate available inventory in OpenERP
stock warehouse inventory tracking
Avatar
0
mar 15
5243
How to do a physical inventory in large warehouse?
stock warehouse inventory location
Avatar
Avatar
Avatar
2
mar 15
10024
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now