Skip to content

Check for allocated stock on transfer action - #13302

Merged
SchrodingersGat merged 5 commits into
inventree:masterfrom
SchrodingersGat:stock-transfer-fix
Nov 17, 2026
Merged

SchrodingersGat merged 5 commits into
inventree:masterfrom
SchrodingersGat:stock-transfer-fix

Conversation

@SchrodingersGat

@SchrodingersGat SchrodingersGat commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Tasks

  • Apply allocation check to stock transfer endpoint
  • Apply allocation check to stock serialize endpoint
  • Apply allocation check to stock install endpoint
  • Display "overallocated" badge on stock item detail page

- Prevent partial transfer of allocated stock
@SchrodingersGat SchrodingersGat added this to the 1.8.0 milestone Nov 17, 2026
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed stock Related to Stock models api Relates to the API backport Apply this label to a PR to enable auto-backport action backport-to-1.7.x Apply this label to backport a PR to the 1.7.x branch labels Nov 17, 2026
@netlify

netlify Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 6f6a00b
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6afc293b3df7f69d6dc2f61e
😎 Deploy Preview https://deploy-preview-13302--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 94 (🟢 up 2 from production)
Accessibility: 82 (no change from production)
Best Practices: 92 (no change from production)
SEO: 78 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.34641% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 90.34%. Comparing base (9485114) to head (6f6a00b).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #13302      +/-   ##
==========================================
+ Coverage   90.32%   90.34%   +0.01%     
==========================================
  Files         901      901              
  Lines       83354    83505     +151     
  Branches     4284     4283       -1     
==========================================
+ Hits        75292    75445     +153     
+ Misses       7046     7044       -2     
  Partials     1016     1016              
Flag Coverage Δ
backend 93.89% <99.34%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 94.39% <99.34%> (+0.01%) ⬆️
Backend General 95.51% <ø> (ø)
Frontend 77.34% <ø> (-0.01%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat
SchrodingersGat merged commit de39c16 into inventree:master Nov 17, 2026
58 of 60 checks passed
@SchrodingersGat
SchrodingersGat deleted the stock-transfer-fix branch November 17, 2026 12:21
@github-actions

Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
✅ 1.7.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

SchrodingersGat added a commit that referenced this pull request Nov 17, 2026
* Check for allocated stock on transfer action

- Prevent partial transfer of allocated stock

* Check allocation on more actions: serialize / install

* Additional stock detail badges

* include transfer order allocations

* fix playwright test

(cherry picked from commit de39c16)

Co-authored-by: Oliver <[email protected]>
Co-authored-by: Matthias Mair <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Relates to the API backport Apply this label to a PR to enable auto-backport action backport-to-1.7.x Apply this label to backport a PR to the 1.7.x branch bug Identifies a bug which needs to be addressed stock Related to Stock models

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants