2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 13:35:40 +00:00

Add "owner" field

This commit is contained in:
Oliver
2021-10-20 23:44:01 +11:00
parent 4a0ed4b2a1
commit d3b1ecd65e
2 changed files with 10 additions and 4 deletions

View File

@ -94,8 +94,8 @@ function stockItemFields(options={}) {
purchase_price_currency: {},
packaging: {},
link: {},
owner: {},
delete_on_deplete: {},
// owner: {},
};
// Remove stock expiry fields if feature is not enabled
@ -103,6 +103,11 @@ function stockItemFields(options={}) {
delete fields['expiry_date'];
}
// Remove ownership field if feature is not enanbled
if (!global_settings.STOCK_OWNERSHIP_CONTROL) {
delete fields['owner'];
}
return fields;
}