* 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>
* 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>
* Alert staff when active plugins rely on a disabled plugin integration
- Report (plugin, mixin, setting) combinations in the 'system_state' of the info endpoint
- Add INVE-W22 alert to the alerts menu and admin center
- Document the new warning code
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* Respect global setting overrides when checking plugin integrations
A setting which is overridden via environment or config file takes priority over the stored value
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* Fix plugin integration message for plugins with translated names
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* Report a failed plugin integration check, and cover its edge cases
If the check raises an exception, report "Unable to check plugin
integrations" instead of "No issues detected".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Name the plugin settings which need to be enabled
List each affected plugin together with the settings which need to be
enabled, e.g. "Auto Create Builds (Enable event integration)".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* add zensical workflow
* rebuild schema dynamically
* load in new module
* Use zensical for docs invoke tasks
* modern
* improved carousel layout
* Increased content width
* fix for app icons
* Ensure schema dir exists
* remove unused requirement
* update readthedocs process
* fix polar.sh link
* adjust link checker pattern
* Revert some of the original style
* remove legacy mkdocs requirements
* fix for ready.py
* reduce db warnings during schema generation
* Adjust padding
* fix index issues
* fix page title
* fix pages with broken or missing headers
* split data import API schema
* cleanup old carousel
* remove djlint link
* fix basic auth without mfa
* refactor order to use new basic auth class
* remove session auth taht would bybpass mfa (mfa thing fixed in another session)
* allign with other PRs
prep for merge with https://github.com/inventree/InvenTree/pull/13169/
* fix schema generation
* Initial app scaffolding
* Skeleton for AuditLogTable
* Add UI table
* Add audit history panel to admin center
* Add auditing for models in the 'company' app
* Gate API access of user staff status
* Display item history in UI
* Track 'attachment' history
* Track 'parameter' changes
* Audit support for "common" models
* Track changed for "build" models
* Track history for "order" models:
- PurchaseOrder
- SalesOrder
- SalesOrderShipment
- ReturnOrder
Also track changes against LineItem and ExtraLineItem objects
* Register custom admin class
* Support Part history
* BomItem changes
* Fix for BulkCreateMixin
* Tweak unit tests
* Use Viewset
* Adjust error code behavior
* Setting to keep summary entries
* Refactor helper for middlewares
* Tweak unit tests
* Fixes for ModelInformationDict
* Track pricing changes
* Add model type filter for auditlog table
* Specify filter field type
* Hide HistoryPanel if auding is disabled
* add docs
* Add "--summary" option to export_records task
* Playwright tests
* Track task responsible for data changes
* Updated unit tests
* record changes to global settings
* Update docs
* Ensure values are stringified
* Fix for globalsetting
* Patch unit test
* Tweak playwright tests
* playwright test fix
* use main branch for demo data
* Update CHANGELOG
* Add internal company flag
* Unit tests
* Add changelog entry and update API version
* add global company table
* Expose model_filters for internal settings
* Update API version
* Update CHANGELOG
* update assert
---------
Co-authored-by: Matthias Mair <code@mjmair.com>
* disable restriction (for now)
* add option for a permanent navigation tree
* revert unintended change
* adjust search text to be less confusing when pinned
* Add user option to rotate table column headers (#12558)
Wide column titles (e.g. "Temperature coefficient [±ppm/°C]") take a
lot of horizontal space for narrow data. Add a ROTATE_TABLE_HEADERS
user setting (Display Options) which renders table header titles
vertically via a scoped CSS class, following the implementation
sketch from the issue discussion.
* Format ROTATE_TABLE_HEADERS description per ruff-format
* add missing doc place
* Document ROTATE_TABLE_HEADERS setting in user settings docs
* docs: add changelog entry for rotated table headers option
---------
Co-authored-by: Matthias Mair <code@mjmair.com>
* Squash migrations for "users" app
* Squash migrations for "common" app
Note: we will come back again later to squash some more
* Significant squashing
* Update legacy migrations
* Further squashing of migrations
* Even more cleanup
* Adjust CI workflow
* Update CI Job
* Update docs
* Update CHANGELOG.md
* Cleanup old comments
* Throw error if pre 1.0.0 DB detected
* Refactor incomplete migration check
* Add SCIM
Closes https://github.com/inventree/InvenTree/issues/6339
* also test scim
* extend testing with conformance suite
* fix test suite results
* coverage completion
* fil test gaps
* add missing schema values
* fix more type issues
* fix error view
* remove route from OpenAPI
* User permissions check for Attachment API (#12689)
* enable oidc proivder by default
* add .well-known entry for OIDC server
* add default client registration
* add changelog entry
* add codeowners
* remove redundant info
* re-name and restructure panel
* add a smal explainer section on top
* flesh out section a bit more
* change name
* basic sso panel
* refactor rendering
* add api and mgmt functions
* add create/delete options
* simplify test
* handle secret generation
* fix merge
* update coverage
* add test
* reduce user friction
* add better labels
* make it more clear that this is only shown once
* add regenerate function
* update tests
* simplify test calls
* fix test
* Clarify SSO setup via Database Admin interface
Fixes#10415 by documenting that Social applications are
configured in Django admin at /admin/, not via config.yaml or API.
* docs: move Database Admin access details to db_admin.md
Per review: drop the access-how-to from SSO.md and link to the Database Admin guide instead.
---------
Co-authored-by: Matthias Mair <code@mjmair.com>
* Add <GlobalPreviewDrawer> component
* Allow plugins to interact
* provide either pk or instance data
* open preview drawer from calendar views
* Launch preview drawer directly from tables
* Add preview types
* Fix types
* CLear data on close
* Fix transition
* Allow caller to pass preview component
* AttributeGrid
* Use a table component
* Display info items
* Navigate to detail page from drawer
* Updates
* Refactor to use part detail view
* Display parameters
* Fix image caching
* Apply same to StockItem
* Remove old component
* Refactor details grid component
* Preview panel for PurchaseOrder model
* Implement for SalesOrder
* Support ReturnOrder
* SupplierPart and ManufacturerPart
* Support preview in parameteric tables
* support Company and BuildOrder
* Fix numbervalue
* BuildOrder and SalesOrderShipment
* location and category
* add user setting
* Fix typing
* Handle link clicks within preview drawer
* fixes
* Implement onClose callback
* Handle row click when panel preview is disabled
* Support custom detail links
* update playwright tests
* UI tweaks
* Add CHANGELOG entry
* docs
* define default API params per model type
* Split out more docs pages
* Simplify state ref
* Refactoring
* Simplify PreviewDrawer component
* observe user setting in calendar view
* Enable PreviewDrawer from RowViewAction
* Push render functions onto ModelInformation dict
* Fix lib compilation
* Refactor internal uses of RowViewAction
* typescript fixes
* Simplify PreviewDrawer component structure
* remove TODO placeholders
* working on merge transfer
* fix history when merging
* update messaging, add 'added' line in history
* reworked history logic
* removed old transfer logic
* remove formatting changes from vite file
* Bumped API version, added entry in docs for new global setting
* removed the tracking item overwrite, Use existing tracking event from transfer
* run pre-commit checks
---------
Co-authored-by: Matthias Mair <code@mjmair.com>
* Add custom URL fetcher for PDF rendering
* Fix for report helper functions
* Use new fetcher
* Additional unit tests
* Add new setting to control remote URL fetching
* validate URLs against SSRF
* Add global setting to disable URL fetching entirely
* Update docs
* Fix capitalization
* Fix logging backend
* Update CHANGELOG
* Vertical scrolling calendar view
* Add new setting to control calendar horizon
* Keep refetching data as user scrolss
* Adjust view based on configured setting
* Reduce padding
* Simplify calendar layout
* Docs tweak
* Split out display settings
* Adjust playwright test
* Reduce reliance on transient dialogs
* Add new global setting
* Update lock checks
* Bug fix for task comparison
* Update user interface
* Hide locked field if locking not enabled
* Update existing unit tests
* Update docs
* Add new Attachment model fields:
- is_image
- thumbnail
* Cache if the attachment is an image
* Add new setting for controlling max upload size
* Validate uploaded attachment file
* Add tqdm for progress bars
* Refactor migrations
- Don't need is_image field
- Can introspect from the thumbnail
* Data migration for existing attachments
* Bump API version
* Update tests and validators
* Add "is_image" field to the Attachment model
* Offload to background task
* Implement unit tests
* Docs
* Add unit test for data migration
* Additional unit test
* Omit migration tests from code coverage
* Additional unit tests
* initial skel commit for transfer orders
* initial transfer order backend model
* add some serializers, rename PLACED to ISSUED for TransferOrders
* adding from admin console works
* simple table list almost working, but we need to add order line items....
* add other cols to table
* add Transfer Order from table view
* moving towards a detail view
* wip: adding detail view
* add take from and destination serializer details
* add other detail grid items
* edit/duplicate transfer order
* more action buttons
* first crack at adding line items
* add to line item
* add filters
* starting work on row actions
* more action buttons for line items
* fix copy lines in duplicate
* basic allocation works
* allocations table actions
* allocate serials
* allocated serial row expansion
* add transferred qty to serializers
* move items on complete, show in tracking
* change panel to transferred stock upon complete
* allow incomplete line items
* disable edit allocations when completed
* add ref pattern and to settings
* add admin to line item inline
* add calendar and parametric view
* basic transfer order report
* add transfer order ruleset
* starting allocation buisness logic throughout for TOs
* disable accept incomplete logic, which was incorrect, until I fix
* fix incomplete allocation option
* add transferred col to default report
* add transfer order to calendar ics view
* chain condition for readability
* add transfer order allocations table to stockitem view
* don't account TO allocations in availability
* add transfer orders table for a part
* 'consume' option by doing take_stock
* squash migrations
* starting to test transfer order
* more transfer order tests
* add transfer order consume test
* wip, more tests
* more transfer order tests
* had to refresh_from_db
* switch "to" to "transfer-order" in url paths
* only select non-virtual parts from transfer order
* add transfer order docs
* deconflict migrations
* fix frontend build error
* fix validation on transfer order reference pattern
* add oath2 scope for transfer order
* fix state test to include transfer order state
* add barcode_model_type_code for transfer order
* bump api version
* check view role for transfer order, remove debug/commented out lines
* add serialized allocation test
* Fix migrations
* Frontend fixes
* Implement required 'company' attribute
* transfer order report context
* attempt to fix tests
* delete transfer order allocations on cancel
* add a few playwright tests, more incoming
* more playwright
* add source and destination locations to table
* deconflict migrations
* Fix build issue
* attempt to fix flaky transfer order test
* duplicate transfer order before running tests
* Adjust playwright tests
* Fix migration dependency order
---------
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
* Remove image download support
- Helper function remains (it is used in the supplier plugin mixin)
- No longer available to user
- Close massive security hole entirely
- Will be defunct soon anyway (moving to generic attachments)
* Update CHANGELOG.md
* Bump API version
* Fix for unit tests
* Enhance: Auto-select items tab for final stock locations/categories
* Fix biome formatting in PanelGroup.tsx
* Change default setting to False per review
* Refactor: Rename setting to DISPLAY_ITEMS_FINAL_LEVEL to apply generically to both locations and categories per review
---------
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>