mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 19:01:17 +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:
1 parent
c11b433d94
commit
b0891c921c
10 files changed
+164
-42
No files matched your search
@@ -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