Commit Graph
2734 Commits
Author SHA1 Message Date
0fb93c40f2 Fix missing call to str.strip() in get_next_reference (#12966) (#13005)
The missing call would throw a TypeError, but that was later on swallowed, so the code would fall back to `reference_int` and never used the configured reference pattern



(cherry picked from commit ea043f50b0)

Co-authored-by: Tijs Moree <tijsmoree@gmail.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-10-13 18:08:20 +11:00
ae39c788f3 Add missing timeout to Slack notification plugin (#12990) (#13001)
(cherry picked from commit 2341d5ff44)

Co-authored-by: MH <106589916+gotoUSA@users.noreply.github.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
2026-10-13 13:54:41 +11:00
0d1ac01ec9 strip query strings when deriving file names from media URLs (#12993) (#12994)
fixes #12992


(cherry picked from commit 0a0cccedd9)

Co-authored-by: Max Grollmann <48564150+maxgr0@users.noreply.github.com>
Co-authored-by: mg <mg@layerx-defence.com>
2026-10-12 19:07:40 +11:00
Matthias Mair 3b96c7377a Update version.py (#12988) 2026-10-10 10:47:27 +02:00
Oliver d01c73173b Bump InvenTree software version to 1.5.7 (#12936) 2026-09-26 17:25:05 +10:00
github-actions[bot]andOliver 284a670413 [UI] Fix BOM pricing tooltip (#12931) (#12934)
* [UI] Fix BOM pricing tooltip

* Add delay for playwright test

(cherry picked from commit 7ece9e8487)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-26 12:13:42 +10:00
Oliver f6c77421e1 Test result bug (#12918) (#12920)
* [UI] Fix for test results

* Display all results in expanded table row

* Fix uni ttest
2026-09-26 11:04:36 +10:00
github-actions[bot]andOliver 3b6b424f9e [API] Use InvenTreeDecimalField for minimum_stock and maximum_stock (#12928) (#12929)
- Fixes https://github.com/inventree/InvenTree/issues/12925

(cherry picked from commit a92f97347a)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-25 11:29:06 +10:00
github-actions[bot]andOliver 039033d02e Fix floating point comparisons for parameter values (#12927) (#12930)
- Closes https://github.com/inventree/InvenTree/issues/12923
- Allow tolerant comparisons for floating point values
- Additional unit tests

(cherry picked from commit 94f1f1e17e)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-25 11:28:45 +10:00
github-actions[bot]andOliver 82d593530a [bug] Fix for Attachment thumbnail generation (#12902) (#12903)
(cherry picked from commit a675d1b24c)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-21 16:56:00 +10:00
github-actions[bot]andOliver ba541ffb33 [bug] Build line fix (#12892) (#12894)
* Fix BuildLineSerializer

- use SubquerySum not Sum

* Add regression test

* Adjust existing API test thresholds

* Refactor assertion message in test_api.py

Simplified assertion message for GROUP BY check in count queries.

* Fix assertion message in count query test

(cherry picked from commit ce52e57fba)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-21 02:04:25 +10:00
github-actions[bot]andOliver 37fa78f917 Display user fix (#12869) (#12876)
* Add 'created-by' badge to order pages

* Update playwright tests

* fix icons

(cherry picked from commit e37045ac41)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-19 14:01:39 +10:00
0d5e4b3a4f Ensure generated label PDFs have correct extension (#12870) (#12879)
* Ensure generated label PDFs retain their extension

* Test generated label PDF filename handling

(cherry picked from commit 98f4a8203b)

Co-authored-by: Petr Ledvina <ledvina@ekotip.cz>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-19 11:53:53 +10:00
4e82366760 Fix validation of dependent serializer fields (#12871) (#12877)
(cherry picked from commit b9c7c24f8a)

Co-authored-by: Petr Ledvina <ledvina@ekotip.cz>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-19 11:53:46 +10:00
Oliver 668731598c Playwright fix (#12883)
* Improved API error handling

* Robustify playwright test

* Adjust playwright test

* Remove comment
2026-09-19 11:53:28 +10:00
Oliver 793725def6 Update version.py (#12866)
Bump version number to 1.5.6
2026-09-19 09:51:46 +10:00
github-actions[bot]andOliver 5bd6e0327e Bug fixes for plugin file check (#12861) (#12862)
- regex escape package name
- allow package without version indicator
- prevent duplication of entries within the plugins file
- add regression tests

(cherry picked from commit 225157153e)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-16 01:33:32 +10:00
github-actions[bot]andOliver d3a1d5847e Add more robust plugin installation check (#12858) (#12860)
(cherry picked from commit d0a98f6491)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-15 23:23:07 +10:00
github-actions[bot]andMatthias Mair cb1cd5a40c fix: users created via Admin Center never receive password reset emails (#12839) (#12846)
* Users created via Admin Center never receive password reset emails
Fixes #12733

* fix issue when using registration endpoint

* remove duplicate code path; we now always do that

* remove old test backfill that is not required anymore

(cherry picked from commit 6b1a3b899e)

Co-authored-by: Matthias Mair <code@mjmair.com>
2026-09-14 13:45:00 +10:00
063e066d4f Fix 12844 notification external link (#12845) (#12847)
* Fix external notification links

* Add notification link regression test

* Preserve fallback for empty notification links

* Satisfy Biome optional-chain check

* Apply Biome formatting

* Retrigger CI

---------


(cherry picked from commit 13cc62567c)

Co-authored-by: Leonid Zaliubovskyi <Leopoldius@users.noreply.github.com>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-14 01:26:48 +10:00
github-actions[bot]andwyyd-yxc 1e887ea01f Add owner field to stock location create/edit form (#12826) (#12836)
* Add owner field to stock location create/edit form (#12537)

The platform UI form for stock locations is built from the explicit
field list in stockLocationFields(), which did not include 'owner'.
The StockLocation model (migration 0057), LocationSerializer and the
documentation all support the owner field, so restore UI parity by
adding it, following the same pattern as the stock item form.

* Hide owner field when stock ownership is disabled (#12537)

Per review: only render the owner field in the stock location
create/edit forms when the STOCK_OWNERSHIP_CONTROL global setting is
enabled. stockLocationFields() becomes the useStockLocationFields()
hook so the form can react to the setting, following the same pattern
as the expiry date field in useStockFields().

(cherry picked from commit 028d1cba1f)

Co-authored-by: wyyd-yxc <2868299717@qq.com>
2026-09-10 19:25:58 +10:00
Matthias Mair da6d0c7a69 Update version.py (#12825) 2026-09-09 09:59:26 +10:00
github-actions[bot]andOliver d2db7b1fb6 [UI] Bug fix for duplicating purchase order line item (#12822) (#12823)
(cherry picked from commit 0a5b04b16d)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-09 09:58:40 +10:00
Matthias MairandOliver 0cfc1f5b2d Update version.py (#12795)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-08 21:35:35 +10:00
Oliver 1930db0234 Fix for recursive custom units (#12815) (#12820) 2026-09-08 12:05:04 +10:00
github-actions[bot]andOliver 181d86c651 [bug] Prevent editing of model-type for data import (#12809) (#12811)
(cherry picked from commit 5a7308763e)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-07 22:42:42 +10:00
github-actions[bot]andOliver ad8013dc23 [bug] Plugin fix (#12805) (#12806)
* [bug] Handle null plugin instance

* Add regression test

* Fix secondary instances of same bug

(cherry picked from commit 2566d332a8)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-07 17:12:37 +10:00
github-actions[bot]andOliver 778d44b89c Plugin load fix (#12776) (#12802)
* Robustify plugin file loading

* Lock static file copying

* Improve robustness of static file copying

* Add regression tests

* Handle database not being ready

* Fix identified limitation and refactor code

* Attempt to fix CI job

* instrumentation for CI - will revert

* Another bugfix attempt

(cherry picked from commit b4cb9a9746)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-07 10:49:32 +10:00
github-actions[bot]andOliver 4e0be4a65a Exception handling for data outputs (#12797) (#12800)
(cherry picked from commit 4a0e28510f)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-07 07:46:06 +10:00
github-actions[bot]andOliver b1b060915e Add error message for missing TLD (#12789) (#12796)
* Add error message for missing TLD

* add error code for missing TLD

(cherry picked from commit 321489a41b)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-06 17:03:12 +10:00
github-actions[bot]andOliver 5b97accbf3 Enhanced error message on CSRF failure (#12788) (#12794)
* Enhanced error message on CSRF failure

* Defer to 'detail' field if exists

(cherry picked from commit 9a416df5d4)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-06 13:04:57 +10:00
github-actions[bot]andOliver 1368b7db08 Refactor part pricing updates (#12787) (#12791)
* Refactor part pricing updates

- Handles cases where underlying part has been deleted

* Add regression tests

(cherry picked from commit fa44925b21)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-06 08:52:57 +10:00
Oliver c154bfabc3 BOM Validation Improvements (#12780) (#12786)
* Adjust get_bom_hash function:

- Optionally skip inclusion of part names
- Skip 'piece_count' if default value set

* Fall back to legacy comparison

* Add per-line-item check

* Add regression tests
2026-09-05 10:41:32 +10:00
github-actions[bot]andOliver 4a795ccddc Handle missing record in after_delete_supplier_part (#12772) (#12777)
(cherry picked from commit 8c1c16e59a)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-03 16:15:02 +10:00
github-actions[bot]andOliver 1c4cfd8a47 Metadata fix (#12771) (#12775)
* Fix security hole for metadata API

* Regression test for field injection

(cherry picked from commit 694d890ce5)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-03 11:59:59 +10:00
github-actions[bot]andOliver 2ddc615ca2 Permissions fix for Calendar views (#12764) (#12765)
(cherry picked from commit 1238daa783)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-02 16:00:42 +10:00
github-actions[bot]andOliver 7f9d89d144 [UI] Fix useReceiveLineItems bug (#12756) (#12757)
- Prevent negative pre-fill values

(cherry picked from commit f8328cd1db)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-01 12:55:56 +10:00
github-actions[bot]andOliver 2754f8c938 [UI] Fixes for column resizing (#12755) (#12758)
- Apply CSS fix
- Allow proper dragging
- Ensure table columns fill 100% width

(cherry picked from commit ed84d06dbe)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-09-01 12:55:54 +10:00
github-actions[bot]andOliver 2fbaa02a07 Notification fix (#12744) (#12745)
* Fill out stock location based on part default

* [UI] Bug fix for notifications

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

(cherry picked from commit c821fa0f43)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-08-30 18:42:30 +10:00
github-actions[bot]andOliver fa6b9e4349 Stock location fix (#12742) (#12743)
* Fill out stock location based on part default

* Add playwright tests

(cherry picked from commit 871147d936)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-08-30 13:17:12 +10:00
github-actions[bot]andOliver ec04fcb31e Tracing fix (#12728) (#12736)
* Bug fix for tracing setup

* Support forking against multiple PIDs

* Updated documentation

(cherry picked from commit fcbcef5aae)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-08-29 09:11:01 +10:00
e909936ff7 update auto allocation button tooltip and visibility logic (#12720) (#12726)
(cherry picked from commit af4c4220f5)

Co-authored-by: Alonso Lopez-Valdez <alonsl1@uci.edu>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-08-28 09:48:29 +10:00
github-actions[bot]andOliver 4446c9596f Fix race condition for take_stock method (#12718) (#12719)
(cherry picked from commit 2dca27f78b)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-08-27 16:06:12 +10:00
Oliver c0469d2530 Bump InvenTree software version to 1.5.3 (#12711) 2026-08-26 09:06:01 +10:00
github-actions[bot]andOliver f15e35c33d [UI] PO Receive bug (#12709) (#12710)
* [UI] Fix for receiving items

* Add playwright regression test

(cherry picked from commit 39f2d724aa)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-08-25 15:32:19 +10:00
github-actions[bot]andOliver c77ff7eba0 User permissions check for Attachment API (#12689) (#12691)
(cherry picked from commit 528bb085d7)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-08-23 23:02:08 +02:00
github-actions[bot]andOliver db404fe0f8 Strip potentially dangerous tags from SVG files (#12687) (#12690)
(cherry picked from commit f16fb36b08)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-08-23 23:01:51 +02:00
0ed2c2951e fix: trigger pricing recalculation when SupplierPart pack_quantity changes (#12421) (#12674)
* fix: trigger pricing recalculation when SupplierPart is saved or deleted

When a SupplierPart's pack_quantity is updated after price breaks have
already been created, the Part's pricing (and BOM cost rollups for any
assemblies using that part) was not recalculated. This is because there
was no post_save or post_delete signal handler for the SupplierPart model
to trigger schedule_pricing_update on the linked Part.

Added post_save and post_delete signal handlers for SupplierPart that
mirror the existing SupplierPriceBreak signal handlers. The pricing
cascade (via update_assemblies) ensures BOM line costs in parent
assemblies are also updated.

Fixes #12285

* style: fix ruff format issues

* style: apply ruff format with --preview flag (matching project config)

* fix: resolve PartPricing.DoesNotExist in pack_quantity test

The test captured self.part.pricing before any PartPricing row existed,
yielding an unsaved instance; the later refresh_from_db() then raised
DoesNotExist. Re-fetch self.part.pricing after the price break creates
the row, matching the pattern in test_supplier_part_pricing.

---------



(cherry picked from commit be9faff766)

Co-authored-by: amanjain57-gif <aman.jain57@gmail.com>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
Co-authored-by: Aman Jain <jainamn@amazon.com>
2026-08-21 15:25:01 +10:00
Oliver 4a490854c8 Bump InvenTree software version to 1.5.2 (#12660) 2026-08-20 00:23:35 +02:00
84052e1ac8 chore(deps): bump sqlparse from 0.5.5 to 0.6.0 in /src/backend (#12653) (#12659)
* chore(deps): bump sqlparse from 0.5.5 to 0.6.0 in /src/backend

Bumps [sqlparse](https://github.com/andialbrecht/sqlparse) from 0.5.5 to 0.6.0.
- [Changelog](https://github.com/andialbrecht/sqlparse/blob/master/CHANGELOG)
- [Commits](https://github.com/andialbrecht/sqlparse/compare/0.5.5...0.6.0)

---
updated-dependencies:
- dependency-name: sqlparse
  dependency-version: 0.6.0
  dependency-type: direct:production
...



* fix style

---------




(cherry picked from commit dc9a277478)

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-08-19 13:18:52 +10:00