From fbc99257bd9abd4837d2a0f552b1fc948d35fd28 Mon Sep 17 00:00:00 2001 From: Richard Lawson Date: Thu, 6 Oct 2022 22:23:53 -0400 Subject: [PATCH] Fixes #3514 (#3754) Added BOM button to bottom of Bill of Materials table on part detail view --- InvenTree/part/templates/part/detail.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index b32ca706f3..ade3fd4632 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -286,6 +286,12 @@
{% include "part/bom.html" with part=part %} + {% if roles.part.change %} + +
+ {% endif %}
@@ -611,7 +617,7 @@ }); }); - $("#bom-item-new").click(function () { + $("[id^=bom-item-new]").click(function () { var fields = bomItemFields();