2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-08 12:50:55 +00:00

Finalized implementation when creating new part

This commit is contained in:
eeintech
2020-11-03 16:54:46 -05:00
parent 72b5a105f8
commit 5a5a36083e
3 changed files with 51 additions and 25 deletions

View File

@@ -205,11 +205,15 @@ class EditPartForm(HelperForm):
help_text=_('Confirm part creation'),
widget=forms.HiddenInput())
category_templates = forms.BooleanField(required=False,
initial=False,
help_text=_('Create parameters based on default category templates'),
label=_('Copy category parameter templates'),
widget=forms.HiddenInput())
selected_category_templates = forms.BooleanField(required=False,
initial=False,
label=_('Include selected category parameter templates'),
widget=forms.HiddenInput())
parent_category_templates = forms.BooleanField(required=False,
initial=False,
label=_('Include parent category parameter templates'),
widget=forms.HiddenInput())
class Meta:
model = Part
@@ -218,7 +222,8 @@ class EditPartForm(HelperForm):
'parameters_copy',
'confirm_creation',
'category',
'category_templates',
'selected_category_templates',
'parent_category_templates',
'name',
'IPN',
'description',