From 194ae499147e07ca54f368acc8563201e2f83922 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 15 Sep 2019 22:23:34 +1000 Subject: [PATCH] Export full_name for parts --- InvenTree/stock/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/stock/admin.py b/InvenTree/stock/admin.py index 119aa3e7a8..c33010bf3b 100644 --- a/InvenTree/stock/admin.py +++ b/InvenTree/stock/admin.py @@ -58,7 +58,7 @@ class StockItemResource(ModelResource): # Custom manaegrs for ForeignKey fields part = Field(attribute='part', widget=widgets.ForeignKeyWidget(Part)) - part_name = Field(attribute='part__name', readonly=True) + part_name = Field(attribute='part__full_ame', readonly=True) supplier_part = Field(attribute='supplier_part', widget=widgets.ForeignKeyWidget(SupplierPart))