2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 19:46:46 +00:00

Form improvements

This commit is contained in:
Oliver Walters 2019-08-28 22:04:04 +10:00
parent 15b38000d5
commit 76ec44d770

View File

@ -67,8 +67,8 @@ class SerializeStockForm(forms.ModelForm):
""" Form for serializing a StockItem. """ """ Form for serializing a StockItem. """
destination = forms.ChoiceField(label='Destination', required=True, help_text='Destination for serialized stock (by default, will remain in current location)') destination = forms.ChoiceField(label='Destination', required=True, help_text='Destination for serialized stock (by default, will remain in current location)')
serial_numbers = forms.CharField(label='Serial numbers', required=True, help_text='Unique serial numbers') serial_numbers = forms.CharField(label='Serial numbers', required=True, help_text='Unique serial numbers (must match quantity)')
note = forms.CharField(label='Notes', required=False, help_text='Add transaction note') note = forms.CharField(label='Notes', required=False, help_text='Add transaction note (optional)')
def get_location_choices(self): def get_location_choices(self):
locs = StockLocation.objects.all() locs = StockLocation.objects.all()