From a0352f9eb698633e15331610c399b59b18621876 Mon Sep 17 00:00:00 2001 From: simonkuehling Date: Thu, 16 Mar 2023 23:10:12 +0100 Subject: [PATCH] Add link column to PO LineItem table (#4500) * add link column to PO LineItem table * fix JS styling --- InvenTree/templates/js/translated/order.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/InvenTree/templates/js/translated/order.js b/InvenTree/templates/js/translated/order.js index 1ec8b48702..b3880cfef5 100644 --- a/InvenTree/templates/js/translated/order.js +++ b/InvenTree/templates/js/translated/order.js @@ -2462,6 +2462,18 @@ function loadPurchaseOrderLineItemTable(table, options={}) { } }, }, + { + sortable: false, + field: 'supplier_part_detail.link', + title: '{% trans "Link" %}', + formatter: function(value, row, index, field) { + if (value) { + return renderLink(value, value); + } else { + return ''; + } + }, + }, { sortable: true, sortName: 'MPN',