mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Limit choices for supplier in PurchaseOrder
This commit is contained in:
		| @@ -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') | ||||
|                                 ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user