Skip to content

[Importer] Natural Key Support #7574

Closed

Description

@SchrodingersGat

When importing a dataset with "foreign key" relations, these may be specified with a natural key (e.g. "name" / "sku" / etc) - rather than the internal InvenTree ID - especially when importing from a different dataset.

So, add some options to lookup using other fields in the related model, rather than just "pk" value. "pk" is used as a priority, when a valid pk is provided.

For example when importing rows for a purchase order, supplier parts could be looked up by "sku" - this will be present when importing a purchase order dataset from an external supplier.

Activity

  1. added
    enhancement
    import / export
    Seeking Funding
    on Jul 7, 2024
  2. github-actions commented on Sep 5, 2024

    @github-actions
    Contributor

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

  3. added
    inactive
    on Sep 5, 2024
  4. added this to the 0.17.0 milestone on Sep 5, 2024
  5. removed
    inactive
    on Sep 5, 2024
  6. SchrodingersGat commented on Sep 5, 2024

    @SchrodingersGat
    MemberAuthor

    Still active

  7. modified the milestones: 0.17.0, 1.0.0 on Nov 12, 2024
  8. removed
    Seeking Funding
    on Mar 20, 2025
  9. modified the milestones: 1.0.0, horizon on Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementimport / export

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions