mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-03 04:00:57 +00:00
Limit choices for Part selection
Based on is_template / virtual / active status
This commit is contained in:
@ -307,6 +307,7 @@ class StockItem(MPTTModel):
|
||||
limit_choices_to={
|
||||
'is_template': False,
|
||||
'active': True,
|
||||
'virtual': False
|
||||
})
|
||||
|
||||
supplier_part = models.ForeignKey('company.SupplierPart', blank=True, null=True, on_delete=models.SET_NULL,
|
||||
|
Reference in New Issue
Block a user