Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
enhancementThis is an suggested enhancement or new featureimport / exportData importing, exporting and processinginactiveIndicates lack of activity
Description
Please verify that this feature request has NOT been suggested before.
- I checked and didn't find a similar feature request
Problem statement
From #11202
We have BOMs with parts like
MLCC, 100nF, 6.3V, 20%, X5R, 0402 MLCC, 100nF, 10V, 20%, X5R, 0402 MLCC, 100nF, 35V, 20%, X5R, 0402 MLCC, 100nF, 50V, 20%, X5R, 0402but for prototyping they might all be substituted by
MLCC, 100nF, 50V, 10%, X7R, 0402or 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.
Suggested solution
Allow for csv BOMs to be imported to contain a field like ComponentSubstitutes with a list of pks of Parts that can substitute the actual part of the BOM-line:
ComponentPartPK;...;ComponentSubstitutesPartPK;
1234;...;1500,1650,2120,;
1240;...;1500,1650,2120,;
1300;...;1500,1650,2120,;
1500;...;1650,;
or
Component; ... ;ComponentSubstitutes;
MLCC, 100nF, 6.3V, 20%, X5R, 0402; ... ;MLCC, 100nF, 50V, 20%, X5R, 0402,MLCC, 100nF, 50V, 20%, X5R, 0402,MLCC, 100nF, 35V, 10%, X5R, 0402
MLCC, 100nF, 10V, 20%, X5R, 0402; ... ;MLCC, 100nF, 50V, 20%, X5R, 0402,MLCC, 100nF, 50V, 10%, X7R, 0402,MLCC, 100nF, 35V, 10%, X5R, 0402
MLCC, 100nF, 35V, 20%, X5R, 0402; ... ;MLCC, 100nF, 50V, 20%, X5R, 0402,MLCC, 100nF, 50V, 10%, X7R, 0402,MLCC, 100nF, 35V, 10%, X5R, 0402
MLCC, 100nF, 50V, 20%, X5R, 0402; ... ;MLCC, 100nF, 50V, 10%, X7R, 0402
Describe alternatives you've considered
#11202 (1) would be a more complex to implement solution
(1) General substitutes on a Part-Level
- e.g. the part
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.
You could also split the section in two and have a "Can be substituted by X" and "Substitutes X" section, to be show both the substitutes and the parts the current part is substituting.
Examples of other systems
No response
Do you want to develop this?
- I want to develop this.
Metadata
Metadata
Assignees
Labels
enhancementThis is an suggested enhancement or new featureimport / exportData importing, exporting and processinginactiveIndicates lack of activity

Activity
SchrodingersGat commentedon Feb 11, 2026
Our importer framework has two limitations which would currently prohibit this:
1) Imported rows can only reference existing entries
It is not possible to reference other rows from the imported session before they are imported.
2) Imported data is 1:1 not 1:n
We do not support "list" fields in data import - each imported row must map to a single "row" in the database
matmair commentedon Apr 2, 2026
Tbh I do not see this getting work done any time soon if nobody interested in picking it up
github-actions commentedon Jun 1, 2026
This issue seems stale. Please react to show this is still important.
github-actions commentedon Aug 1, 2026
This issue seems stale. Please react to show this is still important.