2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Add API endpoints for Owner model

- Will be necessary for PurchaseOrder, SalesOrder and BuildOrder forms
This commit is contained in:
Oliver
2021-07-02 22:45:42 +10:00
parent 2ff9b23647
commit 5e9372f2d6
7 changed files with 91 additions and 17 deletions

View File

@ -266,6 +266,11 @@ function loadSalesOrderTable(table, options) {
field: 'customer_detail',
title: '{% trans "Customer" %}',
formatter: function(value, row, index, field) {
if (!row.customer_detail) {
return '{% trans "Invalid Customer" %}';
}
return imageHoverIcon(row.customer_detail.image) + renderLink(row.customer_detail.name, `/company/${row.customer}/sales-orders/`);
}
},