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

Added setting, checkbox (PartCreateView only) and hook to create part parameters from category templates

This commit is contained in:
eeintech
2020-11-02 13:14:31 -05:00
parent 978b5f869d
commit 34b784d1e4
4 changed files with 32 additions and 0 deletions

View File

@@ -186,6 +186,11 @@ class EditPartForm(HelperForm):
help_text=_('Confirm part creation'),
widget=forms.HiddenInput())
category_templates = forms.BooleanField(required=False,
initial=False,
help_text=_('Create parameters from category templates'),
widget=forms.HiddenInput())
class Meta:
model = Part
fields = [
@@ -193,6 +198,7 @@ class EditPartForm(HelperForm):
'parameters_copy',
'confirm_creation',
'category',
'category_templates',
'name',
'IPN',
'description',