2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 21:45:39 +00:00

Add a "related parts table" function

This commit is contained in:
Oliver
2021-11-25 14:54:21 +11:00
parent 9e01bc8ff2
commit e6dfe27c57
3 changed files with 122 additions and 12 deletions

View File

@ -326,7 +326,7 @@
<div class='panel-content'>
<div id='related-button-bar'>
<div class='btn-group' role='group'>
{% include "filter_list.html" with id="parts" %}
{% include "filter_list.html" with id="related" %}
</div>
</div>
@ -746,16 +746,9 @@
// Load the "related parts" tab
onPanelLoad("related-parts", function() {
loadPartTable(
'#related-parts-table',
'{% url "api-part-list" %}',
{
params: {
related: {{ part.pk }},
},
gridView: true,
checkbox: false,
}
loadRelatedPartsTable(
"#related-parts-table",
{{ part.pk }}
);
$("#add-related-part").click(function() {