diff --git a/InvenTree/part/templates/part/attachments.html b/InvenTree/part/templates/part/attachments.html
index 882d9aee8d..b6837d8321 100644
--- a/InvenTree/part/templates/part/attachments.html
+++ b/InvenTree/part/templates/part/attachments.html
@@ -31,8 +31,12 @@
-
- {% if part.is_template == False %}
- {% include "qr_button.html" %}
- {% if part.active %}
-
- {% if part.purchaseable %}
-
- {% endif %}
- {% endif %}
- {% endif %}
-
-
- {% if not part.active %}
-
- {% endif %}
+
+
+
+ {% if part.is_template == False %}
+ {% include "qr_button.html" %}
+ {% if part.active %}
+
+ {% if not part.virtual %}
+
+ {% endif %}
+ {% if part.purchaseable %}
+
+ {% endif %}
+ {% endif %}
+ {% endif %}
+
+
+ {% if not part.active %}
+
+ {% endif %}
+
@@ -171,6 +178,16 @@
);
});
+ $("#part-count").click(function() {
+ launchModalForm("/stock/adjust/", {
+ data: {
+ action: "count",
+ part: {{ part.id }},
+ reload: true,
+ }
+ });
+ });
+
$("#price-button").click(function() {
launchModalForm(
"{% url 'part-pricing' part.id %}",
diff --git a/InvenTree/static/css/inventree.css b/InvenTree/static/css/inventree.css
index b12540467f..28c304485b 100644
--- a/InvenTree/static/css/inventree.css
+++ b/InvenTree/static/css/inventree.css
@@ -26,6 +26,10 @@
color: #5C5;
}
+.glyphicon-ok-circle {
+ color: #55c;
+}
+
.glyphicon-remove {
color: #C55;
}