Skip to content

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

Description

@tkuester

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.

Image

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:

  1. 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.

  2. 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!

Image

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.

Describe alternatives you've considered

N/A

Examples of other systems

No response

Do you want to develop this?

  • I want to develop this.

Activity

  1. added
    enhancement
    triage:not-checked
    on Mar 31, 2025
  2. added
    build
    User Interface
    and removed
    triage:not-checked
    on Apr 2, 2025
  3. added this to the 1.0.0 milestone on Apr 2, 2025
  4. SchrodingersGat commented on Apr 2, 2025

    @SchrodingersGat
    Member

    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

  5. tkuester commented on Apr 3, 2025

    @tkuester
    Author
  6. SchrodingersGat commented on Apr 3, 2025

    @SchrodingersGat
    Member

    @tkuester congratulations! No rush on this, happy to support you developing this feature at your own pace

  7. modified the milestones: 1.0.0, horizon on Jun 3, 2025
  8. SchrodingersGat commented on Aug 17, 2025

    @SchrodingersGat
    Member

    @tkuester I trust that life as a parent is its own reward! Have you found any time to work on this?

  9. Alonso-Lopez-1 commented on Jul 8, 2026

    @Alonso-Lopez-1
    Contributor

    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?

  10. SchrodingersGat commented on Jul 8, 2026

    @SchrodingersGat
    Member

    @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

  11. Alonso-Lopez-1 commented on Jul 15, 2026

    @Alonso-Lopez-1
    Contributor

    @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.

    Image

    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.

    Image

    Would you still like the first fix implemented?

  12. SchrodingersGat commented on Jul 15, 2026

    @SchrodingersGat
    Member

    Would you still like the first fix implemented?

    Yes, thanks! I think the idea here is to just mark the button as disabled, not hidden?

  13. Alonso-Lopez-1 commented on Aug 6, 2026

    @Alonso-Lopez-1
    Contributor

    @SchrodingersGat Yes that's correct!

  14. SchrodingersGat commented on Aug 10, 2026

    @SchrodingersGat
    Member

    @Alonso-Lopez-1 great, looking forward to a PR :)

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

Metadata

Metadata

Assignees

Labels

User Interfacebuildenhancement

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions