Add link column to PO LineItem table (#4500)

* add link column to PO LineItem table

* fix JS styling
This commit is contained in:
simonkuehling 2023-03-16 23:10:12 +01:00 committed by GitHub
parent 16ff1936cd
commit a0352f9eb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',