2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-21 06:16:29 +00:00

Merged master and updated stock_table.html

This commit is contained in:
eeintech
2021-01-17 13:11:59 -05:00
33 changed files with 4998 additions and 2133 deletions

View File

@ -655,7 +655,9 @@ class PartCreate(AjaxCreateView):
matches = match_part_names(name)
if len(matches) > 0:
context['matches'] = matches
# Limit to the top 5 matches (to prevent clutter)
context['matches'] = matches[:5]
# Enforce display of the checkbox
form.fields['confirm_creation'].widget = CheckboxInput()