mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 12:05:53 +00:00
Fix for URL in supplier parts table
This commit is contained in:
@ -361,7 +361,7 @@ function loadCompanyTable(table, url, options={}) {
|
|||||||
field: 'parts_supplied',
|
field: 'parts_supplied',
|
||||||
title: '{% trans "Parts Supplied" %}',
|
title: '{% trans "Parts Supplied" %}',
|
||||||
formatter: function(value, row) {
|
formatter: function(value, row) {
|
||||||
return renderLink(value, `/company/${row.pk}/parts/`);
|
return renderLink(value, `/company/${row.pk}/?display=supplier-parts`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (options.pagetype == 'manufacturers') {
|
} else if (options.pagetype == 'manufacturers') {
|
||||||
@ -370,7 +370,7 @@ function loadCompanyTable(table, url, options={}) {
|
|||||||
field: 'parts_manufactured',
|
field: 'parts_manufactured',
|
||||||
title: '{% trans "Parts Manufactured" %}',
|
title: '{% trans "Parts Manufactured" %}',
|
||||||
formatter: function(value, row) {
|
formatter: function(value, row) {
|
||||||
return renderLink(value, `/company/${row.pk}/parts/`);
|
return renderLink(value, `/company/${row.pk}/?display=manufacturer-parts`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user