Merge branch 'stockitem-note'

This commit is contained in:
Oliver Walters 2019-04-27 13:56:41 +10:00
commit f2f40e4758
2 changed files with 4 additions and 1 deletions

View File

@ -400,7 +400,9 @@ class SupplierPart(models.Model):
)
supplier = models.ForeignKey(Company, on_delete=models.CASCADE,
related_name='parts')
related_name='parts',
limit_choices_to={'is_supplier': True}
)
SKU = models.CharField(max_length=100, help_text='Supplier stock keeping unit')

View File

@ -31,6 +31,7 @@ class CreateStockItemForm(HelperForm):
'batch',
'quantity',
'status',
'notes',
# 'customer',
'URL',
]