From 7f5aba423a93d676ac069c00474e81cb4475b49f Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 15 Sep 2019 22:23:28 +1000 Subject: [PATCH] Export full_name for parts --- InvenTree/part/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/part/admin.py b/InvenTree/part/admin.py index 2146f76de6..fcef36a772 100644 --- a/InvenTree/part/admin.py +++ b/InvenTree/part/admin.py @@ -131,11 +131,11 @@ class BomItemResource(ModelResource): part = Field(attribute='part', widget=widgets.ForeignKeyWidget(Part)) - part_name = Field(attribute='part__name', readonly=True) + part_name = Field(attribute='part__full_name', readonly=True) sub_part = Field(attribute='sub_part', widget=widgets.ForeignKeyWidget(Part)) - sub_part_name = Field(attribute='sub_part__name', readonly=True) + sub_part_name = Field(attribute='sub_part__full_name', readonly=True) stock = Field(attribute='sub_part__total_stock', readonly=True)