Fix for URL in supplier parts table

This commit is contained in:
Oliver 2021-09-30 19:50:16 +10:00
parent 4ced13466a
commit 15d96a3288

View File

@ -361,7 +361,7 @@ function loadCompanyTable(table, url, options={}) {
field: 'parts_supplied',
title: '{% trans "Parts Supplied" %}',
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') {
@ -370,7 +370,7 @@ function loadCompanyTable(table, url, options={}) {
field: 'parts_manufactured',
title: '{% trans "Parts Manufactured" %}',
formatter: function(value, row) {
return renderLink(value, `/company/${row.pk}/parts/`);
return renderLink(value, `/company/${row.pk}/?display=manufacturer-parts`);
}
});
}