diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html index 36283caeca..df19003b21 100644 --- a/InvenTree/part/templates/part/part_base.html +++ b/InvenTree/part/templates/part/part_base.html @@ -102,7 +102,7 @@ { follow: true, data: { - copy_part: {{ part.id }}, + copy: {{ part.id }}, }, } ); diff --git a/InvenTree/part/views.py b/InvenTree/part/views.py index 031bb3ed60..2778a6a806 100644 --- a/InvenTree/part/views.py +++ b/InvenTree/part/views.py @@ -78,7 +78,7 @@ class PartCreate(AjaxCreateView): def get_initial(self): # Is the client attempting to copy an existing part? - part_to_copy = self.request.GET.get('copy_part', None) + part_to_copy = self.request.GET.get('copy', None) if part_to_copy: try: diff --git a/InvenTree/stock/templates/stock/item.html b/InvenTree/stock/templates/stock/item.html index f1f0a5db1d..aee40d513d 100644 --- a/InvenTree/stock/templates/stock/item.html +++ b/InvenTree/stock/templates/stock/item.html @@ -13,6 +13,7 @@