Limit choices for supplier in PurchaseOrder

This commit is contained in:
Oliver Walters 2019-06-04 22:20:49 +10:00
parent d840b44f7a
commit 68d514d478

View File

@ -64,6 +64,9 @@ class PurchaseOrder(Order):
"""
supplier = models.ForeignKey(Company, on_delete=models.CASCADE,
limit_choices_to={
'is_supplier': True,
},
related_name=_('Orders'),
help_text=_('Company')
)