Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

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

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
stockwarehouseinventorystock_locationMulti-company
1 Rispondi
928 Visualizzazioni
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
Abbandona
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
Risposta migliore

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
Abbandona
Mirodil Ortikov
Autore

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

Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
Need to find product quantities in locations to create draft delivery order
stock warehouse stock_location
Avatar
0
mar 15
3859
External data integration for stock & quantity on hand
stock warehouse integration inventory
Avatar
Avatar
1
giu 20
4612
What are chaining types and chained locations in OpenERP warehouse management ?
stock warehouse inventory location
Avatar
Avatar
1
ago 16
11128
How to calculate available inventory in OpenERP
stock warehouse inventory tracking
Avatar
0
mar 15
5238
How to do a physical inventory in large warehouse?
stock warehouse inventory location
Avatar
Avatar
Avatar
2
mar 15
10017
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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