diff --git a/InvenTree/company/forms.py b/InvenTree/company/forms.py index 6317602b1d..98816bddaf 100644 --- a/InvenTree/company/forms.py +++ b/InvenTree/company/forms.py @@ -97,9 +97,9 @@ class EditManufacturerPartForm(HelperForm): model = ManufacturerPart fields = [ 'part', - 'description', 'manufacturer', 'MPN', + 'description', 'link', ] diff --git a/InvenTree/company/templates/company/manufacturer_part_delete.html b/InvenTree/company/templates/company/manufacturer_part_delete.html index 30eab3b591..4d5c2f6c86 100644 --- a/InvenTree/company/templates/company/manufacturer_part_delete.html +++ b/InvenTree/company/templates/company/manufacturer_part_delete.html @@ -2,14 +2,19 @@ {% load i18n %} {% block pre_form_content %} -{% trans "Are you sure you want to delete the following Manufacturer Parts?" %} +
+ {% trans "Are you sure you want to delete the following Manufacturer Parts?" %} +
+{% for part in parts %} + +{% endfor %} -
{% endblock %} {% block form_data %} - + {% for part in parts %} +
@@ -25,7 +30,18 @@ {{ part.MPN }} -{% endfor %}
+{% if part.supplier_parts.all|length > 0 %} +
+

There are {{ part.supplier_parts.all|length }} suppliers defined for this manufacturer part. If you delete it, the following supplier parts will also be deleted: +

+ +
+{% endif %} +{% endfor %} {% endblock %} \ No newline at end of file