mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +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…
x
Reference in New Issue
Block a user