Commit Graph
18515 Commits
Author SHA1 Message Date
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
Oliver 9bb7d23f80 Logout user when deleting UserSession (#13145) 2026-11-02 07:07:54 +11:00
Oliver b5cfd9528e Fix for revoking token (#13149)
- Do not revoke if already revoked
- Prevents overwrite of previous revoking information
2026-11-02 07:07:24 +11:00
Oliver f12d7f88a7 Fix for token issue message (#13150)
Fix for translated strings
2026-11-02 07:06:52 +11:00
Oliver 04c1a73697 Check if user is active when checking token (#13148)
* Check if user is active when checking token

* Ensure token rejection logs a warning
2026-11-02 07:06:27 +11:00
Oliver 581fef33bc Add playwright test for MFA login flow (#13146) 2026-11-01 22:26:26 +11:00
Matthias Mair f36321a918 add state transtion graph export (#13136) 2026-11-01 20:43:27 +11:00
dependabot[bot] c1cd45fd83 chore(deps): bump follow-redirects in /src/frontend (#13143)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.16.1 to 1.16.2.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.16.1...v1.16.2)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-version: 1.16.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-01 17:48:30 +11:00
Matthias Mair df7f9521d7 feat: add notification on token issuance (#13141)
* add notification on token issuance

* add entries

* fix link url

* increate test timing

* ignore fallback line

* add test for notification
2026-11-01 14:08:58 +11:00