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:
@@ -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',
|
||||
|
Reference in New Issue
Block a user