mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Limit choices for supplier in PurchaseOrder
This commit is contained in:
parent
d840b44f7a
commit
68d514d478
@ -64,6 +64,9 @@ class PurchaseOrder(Order):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
supplier = models.ForeignKey(Company, on_delete=models.CASCADE,
|
supplier = models.ForeignKey(Company, on_delete=models.CASCADE,
|
||||||
|
limit_choices_to={
|
||||||
|
'is_supplier': True,
|
||||||
|
},
|
||||||
related_name=_('Orders'),
|
related_name=_('Orders'),
|
||||||
help_text=_('Company')
|
help_text=_('Company')
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user