Skip to content

Fix Issue 9426 - #12720

Merged
SchrodingersGat merged 2 commits into
inventree:masterfrom
Alonso-Lopez-1:fix-issue-9426
Aug 27, 2026
Merged

SchrodingersGat merged 2 commits into
inventree:masterfrom
Alonso-Lopez-1:fix-issue-9426

Conversation

@Alonso-Lopez-1

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR updates the Auto Allocate Stock button for build orders that have not yet been issued. Instead of hiding the button, it is now disabled, and hovering over it displays a tooltip explaining that the build order must be issued before stock can be allocated.

Why was this PR needed?

Prior to this fix, the Auto Allocate Stock button was hidden when a build order had not been issued, giving users no indication of why the action was unavailable. Keeping the button visible with a tooltip makes the required next step clearer.

What are the relevant issue numbers?

Closes #9426

Screenshots

Disabled Auto Allocate Stock button functionality

Disabled Button Build Order Disabled Button Build Order With Mouse Hovering

Enabled Auto Allocate Stock button still works the same

Production Build Order Displaying Auto Allocate Button

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 Aug 27, 2026 •

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit 84259da
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6a8fd3e7bf5b1e0008e9e3d2
😎 Deploy Preview https://deploy-preview-12720--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: 97 (🟢 up 3 from production)
Accessibility: 81 (🔴 down 1 from production)
Best Practices: 100 (🟢 up 8 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
Contributor Author

Hi @SchrodingersGat, I fixed #9426. Would appreciate a review when you have time. Thank you!

@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed build Build orders User Interface Related to the frontend / User Interface backport Apply this label to a PR to enable auto-backport action backport-to-1.5.x labels Aug 27, 2026
@SchrodingersGat SchrodingersGat added this to the 1.6.0 milestone Aug 27, 2026
@matmair

matmair commented Aug 27, 2026

Copy link
Copy Markdown
Member

@SchrodingersGat ready for merge

@SchrodingersGat
SchrodingersGat merged commit af4c422 into inventree:master Aug 27, 2026
44 of 45 checks passed
@SchrodingersGat

Copy link
Copy Markdown
Member

@Alonso-Lopez-1 thanks for the contribution

@github-actions

Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
✅ 1.5.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 Aug 27, 2026
…12726)

(cherry picked from commit af4c422)

Co-authored-by: Alonso Lopez-Valdez <[email protected]>
Co-authored-by: Oliver <[email protected]>
@Alonso-Lopez-1

Copy link
Copy Markdown
Contributor Author

@SchrodingersGat @matmair Thank you!

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

Labels

backport Apply this label to a PR to enable auto-backport action backport-to-1.5.x bug Identifies a bug which needs to be addressed build Build orders User Interface Related to the frontend / User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR] Don't hide the "Auto Assign Parts" on "Build Order > Line Items" page

3 participants