mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Mark "supplier" field as required on PurchaseOrder serializer (#4693)
- Fixes https://github.com/inventree/InvenTree/issues/4687
This commit is contained in:
parent
011b5915e1
commit
eaa518852c
@ -177,6 +177,10 @@ class PurchaseOrderSerializer(TotalPriceMixin, AbstractOrderSerializer, InvenTre
|
||||
'creation_date',
|
||||
]
|
||||
|
||||
extra_kwargs = {
|
||||
'supplier': {'required': True}
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""Initialization routine for the serializer"""
|
||||
supplier_detail = kwargs.pop('supplier_detail', False)
|
||||
|
Loading…
Reference in New Issue
Block a user