2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

[PUI] Part po table (#7844)

* Implement table for part purchase orders

* Add filters

* Improve table

* Adjust PO actions based on status

* Bump API version
This commit is contained in:
Oliver
2024-08-10 09:19:32 +10:00
committed by GitHub
parent 3733e8a417
commit 556a3161e8
5 changed files with 181 additions and 8 deletions

View File

@ -1,13 +1,16 @@
"""InvenTree API version information."""
# InvenTree API version
INVENTREE_API_VERSION = 235
INVENTREE_API_VERSION = 236
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
INVENTREE_API_TEXT = """
v236 - 2024-08-10 : https://github.com/inventree/InvenTree/pull/7844
- Adds "supplier_name" to the PurchaseOrder API serializer
v235 - 2024-08-08 : https://github.com/inventree/InvenTree/pull/7837
- Adds "on_order" quantity to SalesOrderLineItem serializer
- Adds "building" quantity to SalesOrderLineItem serializer

View File

@ -231,6 +231,7 @@ class PurchaseOrderSerializer(
'supplier',
'supplier_detail',
'supplier_reference',
'supplier_name',
'total_price',
'order_currency',
])
@ -278,6 +279,10 @@ class PurchaseOrderSerializer(
return queryset
supplier_name = serializers.CharField(
source='supplier.name', read_only=True, label=_('Supplier Name')
)
supplier_detail = CompanyBriefSerializer(
source='supplier', many=False, read_only=True
)