Exclude same part from "related" input
This commit is contained in:
parent
0104266281
commit
2b704ccdc0
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue