Stock Ownership Control feature not working

Open
#11,351 7 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
32/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
django, python
Domain
backend

Research direction

The payload names no files or tests. Start by reproducing the steps on a local instance: enable System Settings -> Stock -> Stock Ownership Control, set a stock item's owner to a different user, then try a transfer as a non-owner. Trace where the stock transfer action checks the ownership setting, and read epic #7466 for the intended permission model. Done means a non-owner transfer is refused when the setting is on, with a test covering that case.

Written by the indexing model from the issue text.

Description

not enough info plugin question
Please verify that this bug has NOT been raised before.
  • I checked and didn't find a similar issue
Describe the bug*

The Stock Ownership Control feature does not work as described in the documentation.

Probably relates to epic https://github.com/inventree/InvenTree/issues/7466

Steps to Reproduce

e.g. using demo server:

  1. ensure System Settings -> Stock -> Stock Ownership Control is enabled
  2. change owner of a stockitem to user "admin"
  3. login as non-superuser "allaccess"
  4. allaccess user CAN transfer the stockitem to another location
Expected behaviour
  1. ensure System Settings -> Stock -> Stock Ownership Control is enabled
  2. change owner of a stockitem to user "admin"
  3. login as non-superuser "allaccess"
  4. non-owner "allaccess" CANNOT transfer the stockitem to another location
Deployment Method

None

Version Information

InvenTree-Version: 1.3.0 dev
Django Version: 5.2.11
Commit Hash: 867f5a6
Commit Date: 2026-02-15
Commit Branch: null
Database: django.db.backends.postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-5.15.0-100-generic-x86_64-with-glibc2.41
Installer: DOC
Active plugins: false

Try to reproduce on the demo site

I tried to reproduce

Is the bug reproducible on the demo site?

Reproducible

Relevant log output

Dominant language
Python
Stars
7.7k
Forks
1.6k
Avg merge
21h 45m
Merged PRs (30d)
204

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from inventree/InvenTree

All issues in inventree/InvenTree

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.