2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 01:55:39 +00:00

Display overage values in BOM table

This commit is contained in:
Oliver Walters
2019-05-15 07:23:02 +10:00
parent 68ae38a7d7
commit 8c92c2c2a1
4 changed files with 11 additions and 93 deletions

View File

@ -104,8 +104,6 @@ class PartStarSerializer(InvenTreeModelSerializer):
class BomItemSerializer(InvenTreeModelSerializer):
""" Serializer for BomItem object """
# url = serializers.CharField(source='get_absolute_url', read_only=True)
part_detail = PartBriefSerializer(source='part', many=False, read_only=True)
sub_part_detail = PartBriefSerializer(source='sub_part', many=False, read_only=True)
@ -113,12 +111,12 @@ class BomItemSerializer(InvenTreeModelSerializer):
model = BomItem
fields = [
'pk',
# 'url',
'part',
'part_detail',
'sub_part',
'sub_part_detail',
'quantity',
'overage',
'note',
]