* 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>
* 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>
* feat:generic model insights
inspired by https://github.com/inventree/InvenTree/pull/13069 this adds a more general approach to generic features like attachments, notes
some tests and functions written with assistance of AI
* lazy load panels
* add pr version
* fix snapshot issue
* move history panel to new generic mechanism
* Update api_version.py
* move to generic
* remove duplicate
* clean up import
* fix test
* add ignore for broken contract in test
BuildItem.check_allocated_quantity() summed build and sales order
allocations but not transfer order allocations, so stock that was
fully allocated to an open transfer order could be allocated again to
a build order via the API (POST /api/build/item/).
Include transfer_order_allocation_count() in the check, matching
StockItem.allocation_count() and bulk_allocation_count().
Fixes#13286
* 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
AuthRequiredMiddleware redirects unauthenticated requests for
server-rendered paths to /accounts/login/?next=<path>, but the
account_login redirect view then bounced straight to the frontend
root, dropping the target.
Forward a safe relative 'next' parameter to the SPA's /logged-in
page instead, where LoggedIn.tsx recovers it once the login flow
completes. Absolute or protocol-relative targets are dropped to
rule out open redirects.
Clicking a detail image opened it at Mantine's default modal width
(about 440 px), so a large image was shown no bigger than the preview.
Open the modal at 90vw and cap the image at 85vh so it fits the window.
Fixes#13252
Co-authored-by: jbc-af <jbc@autofruit.com>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
The redirect target set by ProtectedRoute travels in react-router state,
which does not survive the full page navigation through the identity
provider. After the SSO round trip users always landed on /home.
Forward the target through the flow as a 'next' query param on the
allauth callback URL instead, and recover it on the /logged-in page.
Falls back to /home when no valid in-app path is present.
Co-authored-by: Matthias Mair <code@mjmair.com>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Improve caching for full_name template
* More efficient thumbnail field
* better prefetching
* cache base media URL
* InvenTreeModelSerializer now has 'fast_representation' optimization
* Revert "InvenTreeModelSerializer now has 'fast_representation' optimization"
This reverts commit 98571998a6.
* Fix OptionalField on AuditLog API endpoints
* better prefetching
* error if OutputOptionsMixin not correctly applied
* better select_related for AttachmentMixin
* additional pre-fetch improvements
* use a generic registration approach for search defintion
this is in theory open to plugins but not scope for this PR
* reduce unneeded fn wrap
* simplify
* increase max_time by 1 sec
Speed improvements for backend CI testing
- Use different coverage tool
- Optimize plugin reloading during tests
- Mock longer running processes
- Adjust postgres configuration
- Reduce test setup time
* Adds /api/status/ endpoint for admin-facing system messages
* update alerts menu
* right-align badges
* Rename SERVER_RESTART_REQUIRED to _SERVER_RESTART_REQUIRED
* Adjust API endpoint
- Move to /api/system/status/
- Make messages a sub-list
- Remove "system_state" from /api/
* move staff-only messages to new endpoint (and adjust UI accordingly)
* system dialogs staff only
* Reduce scope and revert most changes
* ignore reports in frontend
* clean up blob
---------
Co-authored-by: Matthias Mair <code@mjmair.com>
* Show consuming build orders in child stock items
* Reference PR in changelog and API version notes
* Clarify stock reference test setup and assertions
* Use optional build details for consumed stock
* Include consuming build references in stock exports
* Make stock prefetch test portable to MySQL