mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-10 06:37:17 +00:00
* Add owner field to stock location create/edit form (#12537) The platform UI form for stock locations is built from the explicit field list in stockLocationFields(), which did not include 'owner'. The StockLocation model (migration 0057), LocationSerializer and the documentation all support the owner field, so restore UI parity by adding it, following the same pattern as the stock item form. * Hide owner field when stock ownership is disabled (#12537) Per review: only render the owner field in the stock location create/edit forms when the STOCK_OWNERSHIP_CONTROL global setting is enabled. stockLocationFields() becomes the useStockLocationFields() hook so the form can react to the setting, following the same pattern as the expiry date field in useStockFields().