2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-04-06 19:41:16 +00:00

[Enhancement] Import by natural key fields (#11288)

* Data import flexibility

- Allow specification of alternative lookup fields for data import

* Observe field filters during data import

* Add alternative import fields for Part models

* More options for IMPORT_ID_FIELDS

* Update src/backend/InvenTree/importer/models.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Bump CHANGELOG

* Handle empty input values

* Add IMPORT_ID_FIELDS for more models

* PK field takes highest priority

* Update import docs

* Tweak return type

* Handle multiple date formats

* Add playwright testing

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Oliver
2026-02-20 15:30:00 +11:00
committed by GitHub
parent 1ac3f5e479
commit 14d6d2354f
11 changed files with 220 additions and 3 deletions

View File

@@ -0,0 +1,3 @@
Project Code,Quantity,Reference,Target Date,Project Code Label,Build Order,Overdue,Received,Purchase price,Currency,Auto Pricing,Destination,Total price,SKU,MPN,Internal Part Number,Internal Part,Internal Part Name
5,123,,30/01/2026,PRO-ZEN,,TRUE,0,0.48,USD,TRUE,,59.04,FUT-43861-DDU,,,55,C_100nF_0603
,9999,my-custom-reference,,,,FALSE,0,0.1179,USD,TRUE,9,1178.8821,FUT-82092-CQB,,,60,C_10uF_0805
1 Project Code Quantity Reference Target Date Project Code Label Build Order Overdue Received Purchase price Currency Auto Pricing Destination Total price SKU MPN Internal Part Number Internal Part Internal Part Name
2 5 123 30/01/2026 PRO-ZEN TRUE 0 0.48 USD TRUE 59.04 FUT-43861-DDU 55 C_100nF_0603
3 9999 my-custom-reference FALSE 0 0.1179 USD TRUE 9 1178.8821 FUT-82092-CQB 60 C_10uF_0805