Indicate that a BOM item is inherited in the "uses" table

This commit is contained in:
Oliver 2021-11-15 23:14:13 +11:00
parent f3782ae8bc
commit 66032ea77a

View File

@ -982,6 +982,15 @@ function loadUsedInTable(table, part_id, options={}) {
{
field: 'quantity',
title: '{% trans "Required Quantity" %}',
formatter: function(value, row) {
var html = value;
if (row.parent != 'top-level-item') {
html += ` <em>({% trans "Inherited from parent BOM" %})</em>`;
}
return html;
}
}
]
});