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,
|
||||
limit_choices_to={
|
||||
'is_supplier': True,
|
||||
},
|
||||
related_name=_('Orders'),
|
||||
help_text=_('Company')
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue