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] Option to bulk replace obsolete part in BOM #10777
User InterfaceRelated to the frontend / User Interfacearea/BOMrelated to BOM/assembly logic and possible engine improvementsenhancementThis is an suggested enhancement or new featureinactiveIndicates lack of activity
Please verify that this feature request has NOT been suggested before.
I checked and didn't find a similar feature request
Problem statement
Add functionality to easily manage obsolete parts across multiple BOMs. Specifically, provide an option to replace an obsolete part with a new one, or mark it as inactive and add a substitute part in all BOMs where it appears.
In our setup, a single part (e.g., a resistor or IC) may appear in multiple BOMs across different assemblies or product variants.
When a part becomes obsolete or superseded, we currently have to manually locate and update every BOM that includes that part making it a time-consuming and error-prone process.
Suggested solution
Introduce a bulk BOM update or "part replacement" feature that allows the user to:
Search for a specific part across all BOMs.
Choose to either:
Swap the obsolete part for a new replacement part (preserving quantities and other attributes).
Mark the obsolete part as inactive, and optionally add a new replacement part to all affected BOMs.
Optional enhancements:
A preview list showing all BOMs that will be affected before confirming changes.
Option to log these replacements(why the change was made).
Option to update BOM revisions automatically.
Describe alternatives you've considered
Manually locate and update every BOM that includes that part.
but for prototyping they might all be substituted by
MLCC, 100nF, 50V, 10%, X7R, 0402
or whatever we have in stock in-house.
Currently we manually add the substitutes when importing the BOM into InvenTree, which is labor intensive and error prone.
Our idea of a solution would be the following:
(1) General substitutes on a Part-Level
e.g. the part MLCC, 100nF, 10V, 20%, X5R, 0402 can ALLWAYS be substituted by MLCC, 100nF, 50V, 10%, X7R, 0402. Under /web/part/1234/substitutes we we can add MLCC, 100nF, 50V, 10%, X7R, 0402 and others. If a BOM is created containing MLCC, 100nF, 10V, 20%, X5R, 0402 all substitutes can be added automatically.
(2) The ability import substitutes from the bom.csv
Allow for BOMs to be imported to conatin a field like ComponentSubstitutes with a list of ids of Parts that can substitute the actual part.
@tounho in general I like the idea of an "always substitute" - but careful considering would be needed for how to implement this in the user interface, as well as the additional business logic required to get it working
@SchrodingersGat this could be a one-off command that just replaces the part in all effected BOMs? Would make things much easier to implement and create a clean cut / BOM change
I have been busy with work and not able to give time to thinking about a visual interface for this.
The main issue that i face as a small company: - I have a BoM that uses a MOV in the power section of the device. Due to market conditions/internal tests -> the MOV is not available so i need to search for a new MOV/the MOV selected prior is not cutting it and a higher voltage rated MOV is required (i have more than 50 BoMs that use the same MOV). This causes me to search every BoM manually and replace that component and verify all again.
As Matthias suggested a one-off command that replaces the part affected in BoMs would be a great feature to have!! (I would love to test it) - I will make time this week and try to draft a UI sketch/procedure for this.
I really appreciate the work you guys have put into creating this awesome system 🍻 ❤️
Where would the user access this "bulk update" action from? The "used in" part panel? A custom dashboard action? I would like to understand where this action is available
Workflow Considerations
There are some other considerations around when it is "allowed" to update which assemblies a part is used in:
If the part associated with the BOM entry is locked
What if the part is currently specified as a substitute in a BOM entry, not the main component?
where the user selects the old part he wants to replace with new part (adding this action to used in part panel doesn't make sense as it is applicable for all parts and not a specific part[am i thinking this on the right lines? please let me know])
Workflow Considerations
If the part associated with the BOM entry is locked: In this case can we unlock multiple BoMs(may sound dumb but would have to manually unlock all the BoMs for this) and replace the component (this action also invalidates the BoM, in this case the user would need to validate all BoMs[making sure that the correct quantity of the new part is added] and lock all the BoMs it is used in)?
What if the part is currently specified as a substitute in a BOM entry, not the main component: replacing the part here should pose no problems as the part has become obsolete. Am i missing something here?
I maybe like the idea of a custom dashboard action, as it does not really have a "home" in the UI otherwise...
If the part associated with the BOM entry is locked: In this case can we unlock multiple BoM
Probably be worth having an option to "force override part locks" in this case.
What if the part is currently specified as a substitute in a BOM entry, not the main component: replacing the part here should pose no problems as the part has become obsolete. Am i missing something here?
I think in this case you simply update the substitution item to point to the new part, right?
User InterfaceRelated to the frontend / User Interfacearea/BOMrelated to BOM/assembly logic and possible engine improvementsenhancementThis is an suggested enhancement or new featureinactiveIndicates lack of activity
Activity
SchrodingersGat commentedon Dec 9, 2025
@ram-bt can you imagine what the user interface / procedure might look like for that? Perhaps you can suggest something.
ram-bt commentedon Dec 9, 2025
Sure let me get back to you> @ram-bt can you imagine what the user interface / procedure might look like for that? Perhaps you can suggest something.
gravityshuffle commentedon Jan 19, 2026
We have a similar issue and my solution might work for @ram-bt:
We have BOMs with parts like
but for prototyping they might all be substituted by
or whatever we have in stock in-house.
Currently we manually add the substitutes when importing the BOM into InvenTree, which is labor intensive and error prone.
Our idea of a solution would be the following:
MLCC, 100nF, 10V, 20%, X5R, 0402can ALLWAYS be substituted byMLCC, 100nF, 50V, 10%, X7R, 0402. Under /web/part/1234/substitutes we we can addMLCC, 100nF, 50V, 10%, X7R, 0402and others. If a BOM is created containingMLCC, 100nF, 10V, 20%, X5R, 0402all substitutes can be added automatically.bom.csvComponentSubstituteswith a list of ids of Parts that can substitute the actual part.or
Thank you!
SchrodingersGat commentedon Jan 20, 2026
@tounho in general I like the idea of an "always substitute" - but careful considering would be needed for how to implement this in the user interface, as well as the additional business logic required to get it working
matmair commentedon Jan 20, 2026
@SchrodingersGat this could be a one-off command that just replaces the part in all effected BOMs? Would make things much easier to implement and create a clean cut / BOM change
ram-bt commentedon Jan 20, 2026
@SchrodingersGat Sorry for not replying sooner!
I have been busy with work and not able to give time to thinking about a visual interface for this.
The main issue that i face as a small company: - I have a BoM that uses a MOV in the power section of the device. Due to market conditions/internal tests -> the MOV is not available so i need to search for a new MOV/the MOV selected prior is not cutting it and a higher voltage rated MOV is required (i have more than 50 BoMs that use the same MOV). This causes me to search every BoM manually and replace that component and verify all again.
As Matthias suggested a one-off command that replaces the part affected in BoMs would be a great feature to have!! (I would love to test it) - I will make time this week and try to draft a UI sketch/procedure for this.
I really appreciate the work you guys have put into creating this awesome system 🍻 ❤️
matmair commentedon Jan 20, 2026
@tounho that sounds like a new, separate feature request.
@ram-bt it does not need to be pretty. A textual description or a quick wireframe is enough in most cases to get a solution design going.
We already have UI primitives available.
SchrodingersGat commentedon Feb 11, 2026
@ram-bt two considerations here:
User Interface
Where would the user access this "bulk update" action from? The "used in" part panel? A custom dashboard action? I would like to understand where this action is available
Workflow Considerations
There are some other considerations around when it is "allowed" to update which assemblies a part is used in:
ram-bt commentedon Feb 23, 2026
@SchrodingersGat Sorry for the late reply.
User Interface
Can we have a custom dashboard action for this?
used inpart panel doesn't make sense as it is applicable for all parts and not a specific part[am i thinking this on the right lines? please let me know])Workflow Considerations
SchrodingersGat commentedon Feb 23, 2026
I maybe like the idea of a custom dashboard action, as it does not really have a "home" in the UI otherwise...
Probably be worth having an option to "force override part locks" in this case.
I think in this case you simply update the substitution item to point to the new part, right?
ram-bt commentedon Feb 23, 2026
Agreed
Yes
Yes, that should do the trick
github-actions commentedon Apr 25, 2026
This issue seems stale. Please react to show this is still important.
ram-bt commentedon May 4, 2026
Hi @SchrodingersGat is this feature not being considered in future releases?
SchrodingersGat commentedon May 4, 2026
@ram-bt I have submitted a simple solution to this problem - see #11861