2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-13 08:21:26 +00:00
This commit is contained in:
Oliver Walters
2019-04-17 00:21:11 +10:00
parent 5cd837be07
commit a3b544e2a4
3 changed files with 21 additions and 2 deletions

View File

@ -459,7 +459,7 @@ class SupplierPart(models.Model):
# The part will have a field 'supplier_parts' which links to the supplier part options
part = models.ForeignKey(Part, on_delete=models.CASCADE,
related_name='supplier_parts',
limit_choices_to={'purchasable': True},
limit_choices_to={'purchaseable': True},
)
supplier = models.ForeignKey(Company, on_delete=models.CASCADE,