mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 11:10:54 +00:00
Bugfix: Turns out 'prefix' and 'suffix' were protected fields!
This commit is contained in:
@ -108,11 +108,11 @@ class SerializeStockForm(HelperForm):
|
||||
else:
|
||||
sn = str(sn)
|
||||
|
||||
self.prefix = {
|
||||
self.field_prefix = {
|
||||
'serial_numbers': 'fa-hashtag',
|
||||
}
|
||||
|
||||
self.placeholder = {
|
||||
self.field_placeholder = {
|
||||
'serial_numbers': sn
|
||||
}
|
||||
|
||||
|
@ -717,7 +717,7 @@ class StockItemEdit(AjaxUpdateView):
|
||||
query = query.filter(part=item.part.id)
|
||||
form.fields['supplier_part'].queryset = query
|
||||
|
||||
if not item.part.trackable:
|
||||
if not item.part.trackable or not item.serialized:
|
||||
form.fields.pop('serial')
|
||||
|
||||
return form
|
||||
|
Reference in New Issue
Block a user