diff --git a/InvenTree/part/templates/part/build.html b/InvenTree/part/templates/part/build.html index 999fe7e231..84642f4de8 100644 --- a/InvenTree/part/templates/part/build.html +++ b/InvenTree/part/templates/part/build.html @@ -7,7 +7,9 @@

Part Builds

+ {% if part.active %} + {% endif %}
diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index f0bdc49df2..2a8db4421a 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -17,7 +17,12 @@
  • Duplicate
  • Edit
  • Stocktake
  • -
  • Delete
  • +
    + {% if part.active %} +
  • Deactivate
  • + {% else %} +
  • Activate
  • + {% endif %} diff --git a/InvenTree/part/templates/part/stock.html b/InvenTree/part/templates/part/stock.html index a821652aae..fb620c1b7b 100644 --- a/InvenTree/part/templates/part/stock.html +++ b/InvenTree/part/templates/part/stock.html @@ -7,7 +7,9 @@

    Part Stock

    + {% if part.active %} + {% endif %}