2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 07:31:10 +00:00

Adds simply endpoint for BOM duplication

This commit is contained in:
Oliver
2021-12-21 17:16:27 +11:00
parent 09777c5764
commit 0c8a047bc2
8 changed files with 102 additions and 111 deletions

View File

@@ -1,17 +0,0 @@
{% extends "modal_form.html" %}
{% load i18n %}
{% block pre_form_content %}
<p>
{% trans "Select parent part to copy BOM from" %}
</p>
{% if part.has_bom %}
<div class='alert alert-block alert-danger'>
<strong>{% trans "Warning" %}</strong><br>
{% trans "This part already has a Bill of Materials" %}<br>
</div>
{% endif %}
{% endblock %}

View File

@@ -580,14 +580,10 @@
});
$('#bom-duplicate').click(function() {
launchModalForm(
"{% url 'duplicate-bom' part.id %}",
{
success: function() {
$('#bom-table').bootstrapTable('refresh');
}
}
);
duplicateBom({{ part.pk }}, {
});
});
$("#bom-item-new").click(function () {