* Remove unused settings
Remove settings which have had no effect since the legacy user interface
was removed (or which were never implemented):
- STOCK_SHOW_INSTALLED_ITEMS
- PART_SHOW_RELATED
- BARCODE_INPUT_DELAY
- PLUGIN_UPDATE_CHECK
- REPORT_INLINE (user)
- LABEL_INLINE (user)
Remove them from the settings pages and documentation, and use other
boolean user settings in the tests which used LABEL_INLINE as an example.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Respect part creation and duplication settings
The PART_COPY_TESTS, PART_CATEGORY_PARAMETERS and PART_CREATE_SUPPLIER
settings had no effect since the legacy user interface was removed. The
part forms now use them for the defaults of the "copy tests" and "copy
category parameters" options, and to show the initial supplier fields.
Adds Playwright tests for the create and duplicate part forms.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Enforce expired stock and IPN edit settings
The STOCK_ALLOW_EXPIRED_BUILD, STOCK_ALLOW_EXPIRED_SALE and
PART_ALLOW_EDIT_IPN settings had no effect since the legacy user
interface was removed.
- When stock expiry is enabled, expired stock can only be allocated to
build orders / sales orders if the corresponding setting permits it.
This applies to manual (API) allocation, allocation by serial number,
auto-allocation, and new allocations created via the model. Existing
allocations of since-expired stock remain editable.
- When PART_ALLOW_EDIT_IPN is disabled, the IPN of an existing part cannot
be changed via the API, and the IPN field is disabled in the edit form.
Adds unit tests for each allocation path and the IPN rule, a Playwright
test for the IPN field, and documents the expired stock settings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Additional docs
* Update CHANGELOG
* Fix playwright test
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Allow table search to be limited to selected fields
- Add 'search_fields' query parameter to InvenTreeSearchFilter
- Expose searchable fields (name / label) in the OPTIONS metadata
- Add search field selection menu to the table header
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* Add Playwright test for table search fields
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Add tests for search field restrictions and labels
- Check that search_fields cannot be used to search fields which are
not exposed for searching by the view
- Check that search field labels are translated based on the request
language, including a distant related field
- Check the displayed labels in the Playwright test, including a
distant related field in the BOM table
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Hide the search field menu for tables with a single search field
- Read the searchable fields from the existing table OPTIONS request,
and cache them alongside the column names
- Only display the search field menu when there is more than one
field to choose from
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
ContentTypePermission works out 'view' for safe methods and 'change'
otherwise, but its fallback for models without check_permission()
(e.g. Part, StockItem) still passed a hardcoded 'change'. Reading
metadata via the generic metadata endpoint therefore required 'change'
permission, unlike the model's own detail endpoint, which needs 'view'.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Allow navigating to a sub-part by clicking a BOM row
Clicking a row in the BOM table no longer did anything, as the cell click
handler was disabled entirely. Only disable it while the BOM is being edited.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Add regression test for nested BOM row expansion and navigation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Support parameters on stock location types
* Add stock location type details page
* Bump API version and document location type parameters
* Fix location type write queries and deletion rollback
* Preserve location type names and gate parameter actions
* Use standard navigation and actions for location types
* Add location type preview and detail page shortcuts
* add missing catch
* use replaceAll instead
* add explicit expects to fix juint result reporting
* fix path traversal
* try make this more stable
* use a loop to make this more stable against autoclosing menus
* plugins are somewhat unpredictable so adding some slck
* Check for allocated stock on transfer action
- Prevent partial transfer of allocated stock
* Check allocation on more actions: serialize / install
* Additional stock detail badges
* include transfer order allocations
* fix playwright test
* Show location description in the Stock Item/Stock Details Location field
* Display full stock location path as a hover tooltip in the Stock Item/Stock Details/Location view
* Display category description next to the category name if set:
- Part category details view parent category
- Part details view category
Display location description next to the location name if set:
- Part category details view Default location and Parent default location
- Part details view Default and Category default location
- Build orders Source and Destination location
- Purchaseorder Destination location
- Stock location parent location
Requesting a transfer quantity larger than the stock item quantity moves
the entire item, but the tracking entry recorded the requested quantity.
Clamp the quantity to the item quantity before recording the event.
Fixes#13259
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Warn before closing the template editor with unsaved changes
- Allow DetailDrawer close actions to be intercepted (onBeforeClose)
- Track the saved template code in the TemplateEditor
- Ask for confirmation before discarding unsaved changes (drawer close / page unload)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* Treat a failed unsaved-changes check as unsaved
- Ask for confirmation if the editor code cannot be read
- Reject the plugin preview update if no handler is registered, so the template is not assumed to be saved
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* Do not treat unavailable editor code as saved
An editor which is still initializing (e.g. a plugin editor) returns no
code yet. Fall back to the code which was last handed to the editor, and
ask for confirmation if the editor content is unknown.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Only mark the template as saved when the preview returns a promise
A preview handler which returns synchronously does not report whether the
template was actually stored, so keep the editor marked as unsaved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>