Adds simply endpoint for BOM duplication

This commit is contained in:
Oliver committed 2021-12-21 17:29:14 +11:00
1 parent 09777c5764
commit 0c8a047bc2
8 files changed
+102 -111

No files matched your search

@@ -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 %}
+4 -8
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 () {