mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 20:15:44 +00:00
Working towards better build allocation:
- Improve data serialization in API - Javascript bug fixes - Load the build allocation table using jQuery
This commit is contained in:
@ -21,6 +21,8 @@ class BuildSerializer(InvenTreeModelSerializer):
|
||||
|
||||
part_detail = PartBriefSerializer(source='part', many=False, read_only=True)
|
||||
|
||||
quantity = serializers.FloatField()
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
part_detail = kwargs.pop('part_detail', False)
|
||||
|
||||
@ -63,6 +65,8 @@ class BuildItemSerializer(InvenTreeModelSerializer):
|
||||
part_image = serializers.CharField(source='stock_item.part.image', read_only=True)
|
||||
stock_item_detail = StockItemSerializerBrief(source='stock_item', read_only=True)
|
||||
|
||||
quantity = serializers.FloatField()
|
||||
|
||||
class Meta:
|
||||
model = BuildItem
|
||||
fields = [
|
||||
|
Reference in New Issue
Block a user