mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-19 14:37:48 +00:00
Mark "supplier" field as required on PurchaseOrder serializer (#4693)
- Fixes https://github.com/inventree/InvenTree/issues/4687
This commit is contained in:
1 parent
011b5915e1
commit
eaa518852c
1 file changed
+4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user