You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FR] Don't hide the "Auto Assign Parts" on "Build Order > Line Items" page #9426
Please verify that this feature request has NOT been suggested before.
I checked and didn't find a similar feature request
Problem statement
One little hiccup I had initially while learning how to use InvenTree was trying to figure out how to allocate parts to a build order.
The reason, of course, is that the build order hasn't been issued yet. This makes perfect sense! However, it wasn't immediately obvious to me.
The second problem was that once I issued the build order, and clicked the "Auto Allocate Stock" button, I was confused as to why it didn't do anything. Again, the answer was obvious shortly -- I hadn't told the wizard which parts to allocate.
Suggested solution
I propose two fixes:
Always display the "Auto Allocate Stock" button, but gray it out when the Build Order is not in the correct state. Display a little tool tip which explains to the user why the button cannot be clicked, and how to fix the problem: they must issue / re-issue the build order to allocate parts.
If the user has not selected any parts to allocate, keep the button grayed out, and have the tooltip tell the user to use the checkboxes to select parts to allocate. (Alternatively, if no parts are selected, assume the user meant all parts, and display a notice that this will allocate all parts on the build order.)
As a little side note, I wasn't sure if the "check all" check box would select parts on other pages, and so I had a confidence issue when I hit "Auto Allocate". I was pleasantly surprised to find it worked -- but a little G-Mail style indicator that "N parts are selected on other pages" would be super helpful!
I also think it's interesting how the pagination, and "X - Y of Z" is at the top of the window, which makes it much more visible to users, and not hidden lower on the page.
I think the two fixes suggested here are appropriate. @tkuester would you like to take the lead on implementing these? I am happy to help you find your way around the code base
I'd be very pleased to contribute! Though, I can't make many promises to
how quickly I could get this done. New firstborn and all! Would that be
alright?
Hi @SchrodingersGat , I'm a student in the Codepath AI301 program. I noticed this issue is still open, but I also saw that it was previously assigned. Is this still unresolved and available for contribution?
@Alonso-Lopez-1 I'm not sure if the current status of the UI matches the report. However if you review and find that there are still some outstanding issues to be resolved here I would happily review a PR
@SchrodingersGat I investigated the current UI and it appears that there were some changes, notably the renaming of the "Line Items" tab to "Required Parts", and there are two new tabs present named "Allocated Stock" and "Consumed Stock". However the first fix may still be necessary. As you can see in this screenshot, the auto allocate button is not present when a build order is pending and there is no tip to indicate that the order must be issued first. There is no tip in the Allocated Stock or Consumed Stock tabs either.
The second fix may have already been resolved in another PR. If no parts are selected and the user clicks the auto allocate button, it just assumes that the user meant all parts.
Activity
SchrodingersGat commentedon Apr 2, 2025
I think the two fixes suggested here are appropriate. @tkuester would you like to take the lead on implementing these? I am happy to help you find your way around the code base
tkuester commentedon Apr 3, 2025
SchrodingersGat commentedon Apr 3, 2025
@tkuester congratulations! No rush on this, happy to support you developing this feature at your own pace
SchrodingersGat commentedon Aug 17, 2025
@tkuester I trust that life as a parent is its own reward! Have you found any time to work on this?
Alonso-Lopez-1 commentedon Jul 8, 2026
Hi @SchrodingersGat , I'm a student in the Codepath AI301 program. I noticed this issue is still open, but I also saw that it was previously assigned. Is this still unresolved and available for contribution?
SchrodingersGat commentedon Jul 8, 2026
@Alonso-Lopez-1 I'm not sure if the current status of the UI matches the report. However if you review and find that there are still some outstanding issues to be resolved here I would happily review a PR
Alonso-Lopez-1 commentedon Jul 15, 2026
@SchrodingersGat I investigated the current UI and it appears that there were some changes, notably the renaming of the "Line Items" tab to "Required Parts", and there are two new tabs present named "Allocated Stock" and "Consumed Stock". However the first fix may still be necessary. As you can see in this screenshot, the auto allocate button is not present when a build order is pending and there is no tip to indicate that the order must be issued first. There is no tip in the Allocated Stock or Consumed Stock tabs either.
The second fix may have already been resolved in another PR. If no parts are selected and the user clicks the auto allocate button, it just assumes that the user meant all parts.
Would you still like the first fix implemented?
SchrodingersGat commentedon Jul 15, 2026
Yes, thanks! I think the idea here is to just mark the button as disabled, not hidden?
Alonso-Lopez-1 commentedon Aug 6, 2026
@SchrodingersGat Yes that's correct!
SchrodingersGat commentedon Aug 10, 2026
@Alonso-Lopez-1 great, looking forward to a PR :)