2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-11-13 19:36:46 +00:00

1759 Commits

Author SHA1 Message Date
github-actions[bot]
0d305e10f6 Fix selection list items not displaying values (#10722) (#10723)
Fixes #10701

The issue was that the table row key was using 'props.item.pk', but the
API returns 'id' instead. This caused React to not properly render the
rows with their values.

Changed the key to use 'props.item.id' with a fallback to 'props.idx'
for new rows that don't have an ID yet.


(cherry picked from commit 8d1f7f39b4)

Signed-off-by: Akhil Singh <singhakhil69@gmail.com>
Co-authored-by: Akhil Singh <35478226+akhilsingh-git@users.noreply.github.com>
2025-10-31 09:08:04 +11:00
github-actions[bot]
babe952bcf Format number fix (#10710) (#10711)
* Improvements for format_number func

- Prevent accidental rendering in scientific notation

* Add multiplier argument to format_number

(cherry picked from commit c1bbef1a4d)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-29 16:43:02 +11:00
github-actions[bot]
485e4ae178 [UI] Fix BuildLineTable (#10707) (#10708)
- Closes https://github.com/inventree/InvenTree/issues/10700

(cherry picked from commit c7593d983f)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-29 14:28:54 +11:00
github-actions[bot]
1e6630317c chore(deps): bump pip from 25.2 to 25.3 in /src/backend (#10690) (#10694)
* chore(deps): bump pip from 25.2 to 25.3 in /src/backend

Bumps [pip](https://github.com/pypa/pip) from 25.2 to 25.3.
- [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/pip/compare/25.2...25.3)

---
updated-dependencies:
- dependency-name: pip
  dependency-version: '25.3'
  dependency-type: indirect
...



* fix style

---------




(cherry picked from commit ceb055d61a)

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>
2025-10-28 11:26:26 +11:00
github-actions[bot]
9bd38aa4ba Stock form fixes (#10673) (#10677)
* Improve rendering of SupplierPart in forms

- Display pack_quantity

* Ensure boolean values have default

(cherry picked from commit 636477ac13)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-26 12:00:17 +11:00
github-actions[bot]
8d8dd91ae3 Delete locations fix (#10672) (#10676)
* Cleaner handling of inputs

* Fix for frontend form:

- Fix typo in field
- Better option defaults

* Tweak part category delete form

* Add frontend tests

(cherry picked from commit 23d580c4a9)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-26 12:00:03 +11:00
Oliver
3c372d0c8c Bump software version to 1.0.9 (#10674) 2025-10-26 11:00:08 +11:00
Oliver
0dcb706f4c Default stock currency (#10641) (#10644)
* Default stock currency (#10641)

* Fix for useStockFields

- Use default currency

* Ensure default currency is observed

* Specify field default

* Improve import (for ty)

* Update migration files

- Point currency fields to the correct default method

* Unit tests

- Ensure stock item gets correct default currency

* Cleaner generation of default currency value

- Return empty string during migratoins

* Update existing migrations

* Reduce noise

* Ignore "no-matching-overload" rule for ty

* Tweak money_kwargs

* Remove conflicting code

* Fix import

* Tweak currency_code_default
2025-10-21 16:29:24 +11:00
github-actions[bot]
f8bcc3ec17 [UI] Bug fix for build output forms (#10640) (#10642)
(cherry picked from commit 2187a77153)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-21 08:22:50 +11:00
Oliver
bc42450e0a Bump software version to 1.0.8 (#10635) 2025-10-20 16:26:26 +11:00
github-actions[bot]
fa698e7e2b Fixes for SITE_URL validity checks (#10619) (#10634)
* [docker] Allow HTTPS port to be specified for Caddy proxy

* Fix naming collision for INVENTREE_WEB_PORT

* Push InvenTree version first

* Adjust Caddyfile

- Change backup server

* Fix docstring

* Tweak for site URL check:

- Ignore port if SITE_LAX_PROTOCOL_CHECK is set
- Invert logic for readability

* Additional checks for port mismatch

* Adjust middleware checks

- Allow for less strict checking of CSRF_TRUSTED_ORIGINS

* Slight refactor

(cherry picked from commit f9ce9e20b2)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-20 16:19:30 +11:00
github-actions[bot]
486e338b0b BOM updates (#10611) (#10612)
* BOM updates

- Allow variants of substititute parts to be allocated
- Closes https://github.com/inventree/InvenTree/issues/10606

* Check self.allow_variants

* Add comment

(cherry picked from commit a7c4f2adba)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-18 12:06:16 +11:00
Oliver
eb32546824 Bump software version to 1.0.7 (#10591) 2025-10-17 09:18:55 +11:00
github-actions[bot]
cc508a544c Dashboard item fix (#10596) (#10597)
* Fix for "subscribed categories" dashboard item

* Tweak filter display

* Tweak filter for "Subscribed Parts"

(cherry picked from commit 485aa6324c)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-16 23:17:11 +11:00
github-actions[bot]
c471a1cd38 Order labels (#10588) (#10590)
* Add label actions for build orders

* Support other order types

(cherry picked from commit e040d99665)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-16 07:12:27 +11:00
github-actions[bot]
1249ae3a84 [UI] Fix broken dashboard link (#10577) (#10582)
Ref: https://github.com/inventree/inventree/issues/10548
(cherry picked from commit e0559bb2b4)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-14 12:07:24 +11:00
github-actions[bot]
afdb4090bf Fix missing closing </div> tag (#10572) (#10573)
(cherry picked from commit f9bdad975f)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-13 17:50:13 +11:00
github-actions[bot]
ae2cf931a5 [UI] Remove placeholder text (#10569) (#10570)
- Remove TODO entry
- Placeholder when adding external build order support

(cherry picked from commit a466926aef)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-13 14:26:22 +11:00
github-actions[bot]
6fa54c0e0e [UI] Fix stock actions (#10566) (#10568)
* Clear selected records when search term changes

* Clear selection after performing stock actions

(cherry picked from commit f22417fd1f)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-13 13:37:49 +11:00
github-actions[bot]
ff79ab87e5 [UI] About InvenTree Tweak (#10565) (#10567)
- Hide version entries without data

(cherry picked from commit ea868b3179)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-13 13:23:53 +11:00
github-actions[bot]
9fe290b01f [UI] Adjust login error messages (#10556) (#10564)
* Adjust config template

- Don't hard-code cookie mode into template
- Revert to the "default" values (which are the same)

* [ui] better feedback on login error

- Show error code, at least

* Revert removed code

* Adjust playwright tests

(cherry picked from commit 6badc0148f)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-13 12:31:31 +11:00
github-actions[bot]
b6acbf0a48 fix(installer): make VERSION information accessible in invoke calls (#10558) (#10562)
* implement version loading in more contexts
closes #10554

* factor version file out

* ensure results do not contain new strings

(cherry picked from commit 6327707c0e)

Co-authored-by: Matthias Mair <code@mjmair.com>
2025-10-13 09:13:02 +11:00
github-actions[bot]
4a83b98cd9 Catch error during auto-migrations (#10553) (#10560)
- Prevent process interlock
- Prevent migration check if already running migrations

(cherry picked from commit 067cb1fccb)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-13 09:01:04 +11:00
github-actions[bot]
fe1cc56e94 Fix "override pricing" display (#10545) (#10547)
- Use specified currency values
- Closes #10537

(cherry picked from commit 4edbe9bab1)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-11 12:12:11 +11:00
github-actions[bot]
df7817735d [UI] Prevent warning flash (#10540) (#10541)
* [UI] Prevent warning flash

- Display warning element after a delay

* Support no-javascript

(cherry picked from commit 1a171b5705)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-10 12:55:44 +11:00
Oliver
c3ea3a5566 Bump InvenTree software version to 1.0.6 (#10524) 2025-10-07 12:24:16 +11:00
github-actions[bot]
be3e2b4e01 feat(backend): Improve error message on INVE-7 (#10518) (#10523)
* feat(backend): Improve error message on INVE-7

* change wording

* fix test

* another fix

(cherry picked from commit 13845c69da)

Co-authored-by: Matthias Mair <code@mjmair.com>
2025-10-07 11:35:25 +11:00
github-actions[bot]
62425f1f3b fix: package distribution (#10515) (#10519)
* show warning text

* fix formatting

* try to gather site-url correctly

* protect envs that are set in the config

* raise issue if they appear

* prefer app setting over file config

* preserve setting if injected via envs

(cherry picked from commit c83a9b01ce)

Co-authored-by: Matthias Mair <code@mjmair.com>
2025-10-07 09:13:33 +11:00
Oliver
200c1dfe06 Bump software version to 1.0.5 (#10509) 2025-10-06 22:19:19 +11:00
Oliver
8c0b35ba69 Bump InvenTree software version to 1.0.4 (#10508) 2025-10-06 22:10:48 +11:00
github-actions[bot]
b1d0f3cb9e fix(backend): ensure internal notifications are created in a valid format (#10502) (#10506)
Closes #10435

(cherry picked from commit 96a5291766)

Co-authored-by: Matthias Mair <code@mjmair.com>
2025-10-06 22:10:26 +11:00
Matthias Mair
9819442697 bump contianer / dev dependencies too (#10472) (#10496)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-06 21:57:34 +11:00
github-actions[bot]
f901eec771 Fix rendering for custom status values (#10492) (#10494)
- Improve field lookup priority

(cherry picked from commit b370d54394)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-05 22:39:04 +11:00
github-actions[bot]
17be1fbb43 feat(ui/choice field): select old content on click, auto select first row (#10485) (#10491)
closes #10468, #10470

(cherry picked from commit 4635ea9443)

Co-authored-by: Hamza Ali <github+hhhapz@hamza.sh>
2025-10-05 20:00:08 +11:00
github-actions[bot]
d2aa15257b feat(backend): releax protocol check (#10454) (#10460)
* feat(backend): releax protocol check

* add changelog entry

* fix variable name

---------


(cherry picked from commit 7638092ab8)

Co-authored-by: Matthias Mair <code@mjmair.com>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-02 21:56:10 +10:00
github-actions[bot]
6ff28da48f chore(deps): bump django from 4.2.24 to 4.2.25 in /src/backend (#10448) (#10455)
* chore(deps): bump django from 4.2.24 to 4.2.25 in /src/backend

Bumps [django](https://github.com/django/django) from 4.2.24 to 4.2.25.
- [Commits](https://github.com/django/django/compare/4.2.24...4.2.25)

---
updated-dependencies:
- dependency-name: django
  dependency-version: 4.2.25
  dependency-type: direct:production
...



* fix style

---------




(cherry picked from commit b8b1fabc50)

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>
2025-10-02 20:43:23 +10:00
github-actions[bot]
bd62363b9a [UI] Fix total price for Purchase Order table (#10450) (#10452)
- Closes https://github.com/inventree/InvenTree/issues/10442

(cherry picked from commit bfd32c9864)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-02 11:41:24 +10:00
github-actions[bot]
acc85672e1 Improve printing actions (#10430) (#10432)
- Ensure correct items are specified

(cherry picked from commit 867cd24088)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-09-30 09:52:43 +10:00
Oliver
3e9fc94d63 Bump software version to 1.0.3 (#10425) 2025-09-29 15:22:52 +10:00
github-actions[bot]
1d2700fa6f [UI] Consume tracked (#10422) (#10424)
* Prevent manual consumption of tracked stock

* Prevent manual consuming of trackable items

(cherry picked from commit b0a60ed963)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-09-29 14:01:43 +10:00
github-actions[bot]
9c170e6ed3 Fix locale formatting for calendar display (#10418) (#10420)
- Cannot accept underscore

(cherry picked from commit bcc386aecf)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-09-29 11:31:49 +10:00
github-actions[bot]
542a75ce58 [UI] Enable printing of build lines (#10403) (#10410)
* [UI] Enable printing of build lines

- Closes https://github.com/inventree/InvenTree/issues/10402

* Prevent cell click action

(cherry picked from commit e897222e07)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-09-27 14:30:43 +10:00
github-actions[bot]
06750358d6 [bug] Auto allocate bugfix (#10398) (#10407)
* Fix "unallocated_quantity" calculation

- Take "consumed" quantity into account also

* Account for consumed quantity in:

- build.is_fully_allocated
- build.is_overallocated

* Additional unit tests

- Ensure the new calculations work properly

* Adjust API filter

* Try splitting query

* Another fix

* Try ExpressionWrapper

* Change order of operations?

* Refactor

* Adjust filtering strategy

* Change ordering

* Use Max wrapper

* Add comments

(cherry picked from commit 6fdc6b3a8c)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-09-27 10:23:06 +10:00
github-actions[bot]
6ccc4544be Fix typo (#10400) (#10401)
(cherry picked from commit 52be30eef5)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-09-26 13:47:10 +10:00
github-actions[bot]
ac324cff14 Tweak build line table (#10397) (#10399)
- Show allocated quantity even if fully consumed
- Handles edge case where fully consumed but more stock allocated

(cherry picked from commit 1670523dab)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-09-26 11:37:09 +10:00
github-actions[bot]
98b1678402 fix: correct user deletion (#10385) (#10386)
* Ensure all user sessions are cleared

* remove double warning text on user delete

(cherry picked from commit 4794d69687)

Co-authored-by: Matthias Mair <code@mjmair.com>
2025-09-24 10:30:29 +10:00
github-actions[bot]
da3ebacf6b Hide "consume" action when not viewed from build page (#10378) (#10379)
(cherry picked from commit a7b1b9d523)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-09-23 21:08:54 +10:00
github-actions[bot]
24b2401f6a Handle null user case (#10362) (#10365)
(cherry picked from commit 2f357587bc)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-09-20 13:32:45 +10:00
github-actions[bot]
d12c335032 Support import of "choice" fields (#10361) (#10364)
- Perform reverse lookup of display value

(cherry picked from commit bbfdcdce73)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-09-20 12:56:53 +10:00
Oliver
eae580deaf Bump software version to 1.0.2 (#10360) 2025-09-20 10:15:49 +10:00