mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-01 17:51:23 +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:
@@ -299,6 +299,7 @@ class Order(
|
||||
|
||||
REQUIRE_RESPONSIBLE_SETTING = None
|
||||
UNLOCK_SETTING = None
|
||||
IMPORT_ID_FIELDS = ['reference']
|
||||
|
||||
class Meta:
|
||||
"""Metaclass options. Abstract ensures no database table is created."""
|
||||
|
||||
Reference in New Issue
Block a user