* Remove legacy plugin setting
- ENABLE_PLUGINS_NAVIGATION removed
- Not supported by modern interface
- Now controlled by ENABLE_PLUGINS_INTERFACE
- Use UserInterfaceMixin instead
* Apply suggestion from @matmair
* fix broken playwright test
---------
Co-authored-by: Matthias Mair <code@mjmair.com>
* [bug] Prevent editing stock attributes via API
Some stock attributes should not be editable after creation - instead follow the expected business logic / workflows
* Fix playwright test
* fix broken playwright test
* test fix
* pass ids to notes
* ammend api
* add generic model mixin
* stop editing locked notes
* make frontend generic
* add tests
* update instance info when refreshing instace info
* update test
* update test
* fix test
* fix link
* [bug] Fix for user profile display
- Correctly fetch user profile
- Playwright regression test
* add user preview drawer
* Tweak playwright test
* fix for playwright test concurrency
* make login page load faster
* ann error handler
* simplify lazy import
* more lazy loading
* remove dead function
* nove spotlight out to get smaller chunk
* load drawer
* 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>