2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 20:46:47 +00:00

Merge pull request #2367 from SchrodingersGat/exclude-related-tweaks

Exclude same part from "related" input
This commit is contained in:
Oliver 2021-11-26 21:59:20 +11:00 committed by GitHub
commit d61c22836c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -763,10 +763,12 @@
part_2: {
label: '{% trans "Related Part" %}',
filters: {
exclude_id: {{ part.pk }},
exclude_related: {{ part.pk }},
}
}
},
focus: 'part_2',
title: '{% trans "Add Related Part" %}',
onSuccess: function() {
$('#related-parts-table').bootstrapTable('refresh');