Skip to content

[FR] Allow for BOM-line substitutes to be importet too during BOM import #11254

Closed as not planned

Description

@gravityshuffle

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, 0402

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.

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, 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. Image
    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.

Activity

  1. added
    enhancement
    triage:not-checked
    on Feb 4, 2026
  2. SchrodingersGat commented on Feb 11, 2026

    @SchrodingersGat
    Member

    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

  3. added
    import / export
    and removed
    triage:not-checked
    on Apr 2, 2026
  4. matmair commented on Apr 2, 2026

    @matmair
    Member

    Tbh I do not see this getting work done any time soon if nobody interested in picking it up

  5. github-actions commented on Jun 1, 2026

    @github-actions
    Contributor

    This issue seems stale. Please react to show this is still important.

  6. added
    inactive
    on Jun 1, 2026
  7. removed
    inactive
    on Jun 1, 2026
  8. github-actions commented on Aug 1, 2026

    @github-actions
    Contributor

    This issue seems stale. Please react to show this is still important.

  9. added
    inactive
    on Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementimport / exportinactive

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions