mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
Add ability to edit 'delete_on_deplete' field
This commit is contained in:
parent
ac326c135f
commit
027e1cf130
@ -34,6 +34,7 @@ class CreateStockItemForm(HelperForm):
|
|||||||
'location',
|
'location',
|
||||||
'batch',
|
'batch',
|
||||||
'quantity',
|
'quantity',
|
||||||
|
'delete_on_deplete',
|
||||||
'status',
|
'status',
|
||||||
'notes',
|
'notes',
|
||||||
'URL',
|
'URL',
|
||||||
@ -78,6 +79,7 @@ class EditStockItemForm(HelperForm):
|
|||||||
fields = [
|
fields = [
|
||||||
'supplier_part',
|
'supplier_part',
|
||||||
'batch',
|
'batch',
|
||||||
|
'delete_on_deplete',
|
||||||
'status',
|
'status',
|
||||||
'notes',
|
'notes',
|
||||||
'URL',
|
'URL',
|
||||||
|
@ -286,9 +286,9 @@ class StockItem(models.Model):
|
|||||||
self.location = location
|
self.location = location
|
||||||
|
|
||||||
self.addTransactionNote(msg,
|
self.addTransactionNote(msg,
|
||||||
user,
|
user,
|
||||||
notes=notes,
|
notes=notes,
|
||||||
system=True)
|
system=True)
|
||||||
|
|
||||||
self.save()
|
self.save()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user