mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 05:25:42 +00:00
Add function to duplicate stock item
This commit is contained in:
@ -102,7 +102,7 @@
|
||||
{
|
||||
follow: true,
|
||||
data: {
|
||||
copy_part: {{ part.id }},
|
||||
copy: {{ part.id }},
|
||||
},
|
||||
}
|
||||
);
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user