Commit Graph
18523 Commits
Author SHA1 Message Date
Matthias Mair e7b6bc352d include docker provenance (#13324) (#13327)
* add provenance and attestations

* improve caching

(cherry picked from commit 78b6dd83a4)
2026-11-19 10:51:35 +11:00
432d5a5ce6 Check for allocated stock on transfer action (#13302) (#13314)
* 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

(cherry picked from commit de39c1626c)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
2026-11-18 10:14:26 +11:00
Matthias Mair dcf4b30936 bump version to 1.7.4 (#13316) 2026-11-18 09:54:18 +11:00
67229e4930 Handle transition errors which occur after valid transition (#13303) (#13310)
(cherry picked from commit a47db7ec18)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
1.7.3
2026-11-18 06:53:21 +11:00
d1dfb85187 Additional hardening of fetching remote URLs (#13306) (#13309)
(cherry picked from commit b851402f8f)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
2026-11-18 06:53:06 +11:00
60b465b66e [bug] Fix for token issuance via UI (#13307) (#13313)
- Fixes bug where non-staff users could not generate (or revoke) their own tokens via the API
- Closes https://github.com/inventree/InvenTree/issues/13299

(cherry picked from commit 8f8502d0d9)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
2026-11-18 06:52:47 +11:00
Matthias Mair b4984a1be6 backport link fix (#13315)
from https://github.com/inventree/InvenTree/pull/13253
2026-11-17 14:28:29 +01:00
de4ce76cac Record the quantity actually moved when a transfer exceeds stock (#13295) (#13300)
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


(cherry picked from commit dfc5ca9c04)

Co-authored-by: Quimxi <quimxi6@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 09:07:22 +11:00
github-actions[bot]andArjun Kotwal 3701f52387 [bug] Count transfer order allocations when validating build items (#13287) (#13289)
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

(cherry picked from commit 3572714f5f)

Co-authored-by: Arjun Kotwal <arjun.kotwal@ontariotechu.net>
2026-11-15 14:52:37 +11:00
github-actions[bot]andOliver 04b2eb02a9 [bug] prevent changing of order creation_date via API (#13284) (#13288)
(cherry picked from commit 9e78e73a7c)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-11-15 08:40:02 +11:00
f0c0b634ae fix(frontend): preserve redirect target through SSO login (#13270) (#13276)
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.



(cherry picked from commit b9b46797c2)

Co-authored-by: Alex Martens <alex@thinglab.org>
Co-authored-by: Matthias Mair <code@mjmair.com>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-11-14 18:20:05 +11:00
5079f96a75 [UI] Size the detail image modal to the viewport (#13264) (#13278)
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



(cherry picked from commit ed0bbc3c75)

Co-authored-by: jbc-af <jbc@auto-fruit.com>
Co-authored-by: jbc-af <jbc@autofruit.com>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-11-14 17:42:13 +11:00
OliverandCopilot Autofix powered by AI 4210fc95a8 MFA workflow fixes (#13241) (#13277)
* MFA workflow fixes

- Fixes https://github.com/inventree/InvenTree/issues/13238
- Verify email on successful password reset
- Invalidate password on account creation
- Fix MFA workflows
- Add regression tests

* Update docs

* Update OTP secret expectation to use exact match



* Attempt to fix flaky test

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-11-14 16:35:39 +11:00
github-actions[bot]andOliver d51720e8e1 [bug] Fix for shipment allocations (#13272) (#13275)
Apply row-level locking when completing shipment allocation to avoid concurrent update issues

(cherry picked from commit 7787408fff)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-11-14 15:01:26 +11:00
Oliver 6775d7fc39 Bump InvenTree software version to 1.7.3 (#13263) 2026-11-13 12:40:45 +11:00
Matthias Mair 7a137c8947 backport fix (#13262) 1.7.2 2026-11-13 08:47:56 +11:00
github-actions[bot]andOliver 5cb5bc03eb [UI] Improve error messaging for API fields (#13254) (#13255)
- Handle condition where an API field has the same name as one of the "backup" catch-all fields

(cherry picked from commit c80090b3ce)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-11-12 18:43:07 +11:00
github-actions[bot]andOliver d6255aa772 [UI] Fixes for "tags" field (#13233) (#13234)
- Fetch appropriate 'tags' detail in the form request
- Additional playwright tests

(cherry picked from commit 3383e865cb)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-11-10 01:33:55 +11:00
github-actions[bot]andOliver 4d6937ac39 [bug] date import (#13225) (#13230)
- Handle date values during data import
- reported via sentry.io

(cherry picked from commit 2497dd5425)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-11-09 20:27:12 +11:00
github-actions[bot]andMatthias Mair 0b08318758 provide context in docker startup logs (#13227) (#13229)
* provide context in docker startup logs

* reduce unnecessary docker logging

* this is set in one place; can be less complicated

(cherry picked from commit 8f668657b3)

Co-authored-by: Matthias Mair <code@mjmair.com>
2026-11-09 20:27:02 +11:00
github-actions[bot]andMatthias Mair f3857c6667 log tasks as json (#13226) (#13228)
(cherry picked from commit c54b279b50)

Co-authored-by: Matthias Mair <code@mjmair.com>
2026-11-09 14:56:04 +11:00
Oliver 935d8d9d9e Bump InvenTree software version to 1.7.2 (#13222) 2026-11-08 16:08:33 +11:00
github-actions[bot]andMatthias Mair 7507c45a45 fix otel middleware instrumentation (#13219) (#13220)
* fix otel instrumentation

* fix name conflict

(cherry picked from commit b4e74791e6)

Co-authored-by: Matthias Mair <code@mjmair.com>
1.7.1
2026-11-08 09:54:14 +11:00
github-actions[bot]andOliver f5cf0ef6ba Token issuance updates (#13214) (#13217)
- Ensure all token issuance endpoints are explicitly checked for MFA auth
- Additional backend unit tests
- Additional frontend unit tests

(cherry picked from commit 02d6a038bf)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-11-07 20:50:49 +11:00
github-actions[bot]andCarmelo Mordini 1b034a41be [UI] Fix row click in parametric table when preview panel is disabled (#13206) (#13218)
(cherry picked from commit 92f93a9b83)

Co-authored-by: Carmelo Mordini <carmelo.mordini@gmail.com>
2026-11-07 20:50:42 +11:00
github-actions[bot]andOliver 205e48b0ea Permissions fix for metadata endpoints (#13213) (#13215)
Metadata API endpoints now observe the user permissions associated with the underlying models

(cherry picked from commit 0cb1852e0d)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-11-07 16:02:46 +11:00
github-actions[bot]andsufyanaslam198 02d5b23388 Temporary fix fpr Redoc (#13201) (#13211)
Added temporary fix for Redoc distribution URL as Redoc 3 is an ES-module-only and drf-spectacular's template can't load (tfranzel/drf-spectacular#1543)

(cherry picked from commit 08dad19122)

Co-authored-by: sufyanaslam198 <sufyanmukadam98@gmail.com>
2026-11-07 11:44:04 +11:00
github-actions[bot]andOliver 7a2f00e405 [bug] API form fixes (#13196) (#13198)
* Improve API error feedback

* Add 'message' field opt

* Update error handling logic

(cherry picked from commit c5c878d6af)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-11-06 09:20:10 +11:00
github-actions[bot]andOliver 1d5b35baae [bug] support custom stock status on tranfer (#13194) (#13195)
- Closes https://github.com/inventree/InvenTree/issues/13191

(cherry picked from commit a6b7a5bf3a)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-11-05 15:36:03 +11:00
github-actions[bot]andOliver 49556aecf5 [bug] Fix 'get_user_language' (#13180) (#13182)
- The 'LANGUAGE" user setting does not exist
- Introduced in https://github.com/inventree/InvenTree/pull/12944

(cherry picked from commit ec5d6324f8)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-11-04 16:55:33 +11:00
Oliver acb6f81ee2 Bump InvenTree software version to 1.7.1 (#13183) 2026-11-04 15:33:04 +11:00
Oliver 365245ed73 1.7.0 (#13177)
* Set release version in CHANGELOG

* Set software version to 1.7.0
1.7.0
2026-11-03 23:49:06 +11:00
Oliver d8f09fa078 Token fixes (#13175)
* Prevent junk token from bypassing MFA

* updated docs

* Fix read-only token fields

* Fix API version ref
2026-11-03 23:05:23 +11:00
Matthias Mair 315b5bd134 Merge commit from fork
* remove mfa disableing on the token flow

* also check for mfa in token issuance
2026-11-03 20:26:16 +11:00
Matthias Mair 4121d9a8a5 Merge commit from fork
* 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
2026-11-03 20:23:32 +11:00
Matthias Mair 16fa2ee5cd Merge commit from fork
* fix oauth scopes

* fix typing
2026-11-03 20:20:10 +11:00
Oliver 62d363a99d [UI] Context details for plugin actions (#13172)
* [UI] Context details for plugin actions

Adds additional target instance context when registering custom UI actions

* Add CHANGELOG entry

* Improve test
2026-11-03 17:22:26 +11:00
Oliver 461186bee9 [UI] Launch forms directly from plugin (#13174)
* [UI] Launch forms directly from plugin

Provide ability for plugins to dynamically launch modal forms, without specifying the underlying react components.

This allows (for example) a primary action on a detail page to launch a new native API form

* Add CHANGELOG entry
2026-11-03 16:41:33 +11:00
Oliver ad723c15e4 Update frontend plugin lib (#13173)
* Update frontend plugin lib

* Bump package.json version
2026-11-03 15:37:53 +11:00
Oliver c3948f56ed Implement stock adjust barcode actions (#13170) 2026-11-03 12:03:33 +11:00
Oliver c9ba1169f4 [UI] Copy error button (#13168)
Adds button to copy UI error information
2026-11-03 10:36:54 +11:00
Oliver 2310b54e26 [UI] Handle duplicate cameras (#13167)
Fixes https://github.com/inventree/InvenTree/issues/13164
2026-11-03 10:33:48 +11:00
Oliver bc8c1aefa2 CustomUnit fixes (#13161)
* CustomUnit fixes

- Require staff access for data import
- Prevent overload of built-in units

* fix unit tests
2026-11-03 09:16:08 +11:00
Oliver 2629cde722 Data Import Fixes (#13162)
- Improved validation of data import session
- Handle FieldError if incorrect filter field is provided
- Prevent model traversal via import session filtering
- Added regression tests
2026-11-02 20:41:47 +11:00
Oliver b4cdbf3d07 [UI] Improved notification links (#13159)
Handle internal notification links which are stored as a fully qualified URL. These can now be routed internally rather than reloading the whole page
2026-11-02 14:47:24 +11:00
github-actions[bot] dcec25f777 New Crowdin translations by GitHub Action (#13127)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-02 14:00:49 +11:00
Oliver 4fb0226ecc [bug] Settings fix (#13156)
* Fix error when generating default settings

- Prevent database error on conflicting rows
- Can be caused by concurrent user requests

* ignore conflicts for TipResult
2026-11-02 12:09:09 +11:00
dependabot[bot]andMatthias Mair 84fa789caf chore(deps): bump python from 3.14.8-slim-trixie to 3.14.10-slim-trixie in /contrib/container (#13124)
* chore(deps): bump python in /contrib/container

Bumps python from 3.14.8-slim-trixie to 3.15.0-slim-trixie.

---
updated-dependencies:
- dependency-name: python
  dependency-version: 3.15.0-slim-trixie
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update Dockerfile

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
2026-11-02 10:43:29 +11:00
Oliver 1b8bdad061 Token improvements (#13155)
- More secure masking of tokens
- Fix lowercase bug
- Use consistent date checking
2026-11-02 10:33:19 +11:00
dependabot[bot]andMatthias Mair 61a2c2af5f chore(deps): bump pypdf from 6.21.2 to 6.21.4 in /src/backend (#13144)
* chore(deps): bump pypdf from 6.21.2 to 6.21.4 in /src/backend

Bumps [pypdf](https://github.com/py-pdf/pypdf) from 6.21.2 to 6.21.4.
- [Release notes](https://github.com/py-pdf/pypdf/releases)
- [Changelog](https://github.com/py-pdf/pypdf/blob/main/CHANGELOG.md)
- [Commits](https://github.com/py-pdf/pypdf/compare/6.21.2...6.21.4)

---
updated-dependencies:
- dependency-name: pypdf
  dependency-version: 6.21.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix style

* also bump pyasn1

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
2026-11-02 07:08:21 +11:00