Skip to content

Fix issue 10769#12286

Open
Alonso-Lopez-1 wants to merge 4 commits into
inventree:masterfrom
Alonso-Lopez-1:fix-issue-10769
Open

Fix issue 10769#12286
Alonso-Lopez-1 wants to merge 4 commits into
inventree:masterfrom
Alonso-Lopez-1:fix-issue-10769

Conversation

@Alonso-Lopez-1

Copy link
Copy Markdown

What does this PR do?

This update displays the "Damaged" and "Attention Needed" badges for parts with this status. This badge is specifically displayed in the drop-down menu within the stock allocation in Build Orders or Sales Orders. Only these two badges are displayed, any other statuses such as "OK" are not. The badge is gated by an opt-in flag so it appears only in these allocation dropdowns and does not leak into other stock-item dropdowns.

Why was this PR needed?

People allocating stock within these order forms needed to know if the stock needed attention or was damaged.

What are the relevant issue numbers?

Closes #10769

Screenshots / Recordings (if applicable)

Build Order allocation dropdown displays "Damaged" and "Attention Needed" badges

BO_Allocate_Stock_Test1

Build Order allocation dropdown does not display other status badges

BO_Allocate_Stock_Test2

Sales Order allocation dropdown displays "Damaged" and "Attention Needed" badges

SO_Allocate_Stock_Test1

Sales Order allocation dropdown does not display other status badges

SO_Allocate_Stock_Test2

Does this PR meet the acceptance criteria?

  • Tests added for new/changed behavior
  • All tests passing
  • Follows project style guide
  • No breaking changes introduced
  • Documentation updated

@netlify

netlify Bot commented Jun 30, 2026

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit 844e088
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6a444b0549820f000805730f
😎 Deploy Preview https://deploy-preview-12286--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: 92 (no change from production)
Accessibility: 82 (no change from production)
Best Practices: 100 (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.

@Alonso-Lopez-1

Copy link
Copy Markdown
Author

Hi @SchrodingersGat, this is my first contribution to InvenTree. I fixed #10769 by displaying “Damaged” and “Attention Needed” stock status badges in the Build Order and Sales Order allocation dropdowns. Would appreciate a review when you have time. Thank you!

@SchrodingersGat

Copy link
Copy Markdown
Member

I would suggest a different approach - display the stock status all the time, rather than these complex checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR] Show "Attention needed" and "Demaged" state when allocating

2 participants