added fields to save step

This commit is contained in:
Matthias 2021-10-23 23:40:29 +02:00
parent 71cc155dc9
commit 1556663254
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -388,6 +388,17 @@ class PartImport(FileManagementFormView):
category=optional_matches['Category'],
default_location=optional_matches['default_location'],
default_supplier=optional_matches['default_supplier'],
variant_of=optional_matches['variant_of'],
active=optional_matches['active'],
base_cost=optional_matches['base_cost'],
multiple=optional_matches['multiple'],
assembly=optional_matches['assembly'],
component=optional_matches['component'],
is_template=optional_matches['is_template'],
purchaseable=optional_matches['purchaseable'],
salable=optional_matches['salable'],
trackable=optional_matches['trackable'],
virtual=optional_matches['virtual'],
)
try:
new_part.save()