2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 04:00:57 +00:00

Fix for StockItem model

- Allow sales_order_line to be blank
This commit is contained in:
Oliver Walters
2020-04-22 10:16:54 +10:00
parent 6dd79af0b6
commit 3a71a4f63a
3 changed files with 32 additions and 7 deletions

View File

@ -373,7 +373,7 @@ class StockItem(MPTTModel):
SalesOrderLineItem,
on_delete=models.SET_NULL,
related_name='stock_items',
null=True)
null=True, blank=True)
# last time the stock was checked / counted
stocktake_date = models.DateField(blank=True, null=True)