mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 04:55:44 +00:00
Refactor for SupplierPart detail page
This commit is contained in:
@ -681,6 +681,7 @@ function orderParts(parts_list, options={}) {
|
||||
required: true,
|
||||
type: 'related field',
|
||||
auto_fill: true,
|
||||
value: options.supplier_part,
|
||||
filters: supplier_part_filters,
|
||||
noResults: function(query) {
|
||||
return '{% trans "No matching supplier parts" %}';
|
||||
@ -695,6 +696,7 @@ function orderParts(parts_list, options={}) {
|
||||
required: true,
|
||||
type: 'related field',
|
||||
auto_fill: false,
|
||||
value: options.order,
|
||||
filters: order_filters,
|
||||
noResults: function(query) {
|
||||
return '{% trans "No matching purchase orders" %}';
|
||||
|
Reference in New Issue
Block a user