2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-11 07:24:15 +00:00

Bug fix for recent SupplierPart API annotation (#3336)

This commit is contained in:
Oliver
2022-07-15 20:30:26 +10:00
committed by GitHub
parent 653dcd4526
commit 6e2a2f2b2c
3 changed files with 23 additions and 2 deletions

View File

@ -598,7 +598,8 @@ class StockItem(MetadataMixin, MPTTModel):
supplier_part = models.ForeignKey(
'company.SupplierPart', blank=True, null=True, on_delete=models.SET_NULL,
verbose_name=_('Supplier Part'),
help_text=_('Select a matching supplier part for this stock item')
help_text=_('Select a matching supplier part for this stock item'),
related_name='stock_items',
)
# Note: When a StockLocation is deleted, stock items are updated via a signal