Oliver
d5ee647c6e
[ui] Label fix ( #10874 )
...
* Fix for sales order allocations:
- Improve UX
- Clearer intent
* Same fix for build order
* Also for build line sub table
2025-11-21 12:43:01 +11:00
Oliver
a76ec0a7b8
[UI] Suggested pricing ( #10867 )
...
* Refactor NumberField into separate component
* Add helper func to ensure a number is a number
* Use placeholder value for suggested sale price
* Fix for auto-fill
* Tweak price calculation
* Add UI testing for sales order price breaks
* Fix aria label name
* Annotate price breaks to supplier part
* Fetch price break data
* Support price breaks for purchase order pricing
* Fix required to prevent circular imports
* Add playwright tests for purchase order price breaks
* Bump API version
* Re-add output options for SupplierPriceBreakList
* Revert change
* Simplify unit test
2025-11-20 22:51:27 +11:00
Oliver
835c7784f9
Implement caching for unit registry: ( #10870 )
...
* Implement caching for unit registry:
- Registry could become out of sync across sessions
- Implement a simple caching system
* Simplify code
2025-11-20 22:31:33 +11:00
github-actions[bot]
f72efb804e
New Crowdin translations by GitHub Action ( #10736 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-20 21:39:11 +11:00
Oliver
468efbacfc
[UI] Delete stock fix ( #10868 )
...
* Add helper func getOverviewUrl
* Redirect to parent page when stock item is counted to zero
2025-11-20 06:34:25 +11:00
Oliver
18c2a934b8
Better handling of an invalid config file ( #10857 )
...
* Better handling of an invalid config file
* Remove dud line
2025-11-19 16:21:17 +11:00
Oliver
a8f2a02d69
[bug] Media url fix ( #10855 )
...
* Bug fix for getMediaUrl
- Proper check for file type
- Fix "fully_qualified_url" for Attachment model
* Add unit test
* Fix typo
* Fix unit test
---------
Co-authored-by: Matthias Mair <code@mjmair.com >
2025-11-19 15:50:05 +11:00
Oliver
7b38fa30bb
Fix for shipping virtual parts ( #10853 )
...
* Additional checks for virtual parts in sales order process
* Prevent allocation against virtual parts
* Fix order of operations
* Adjust part form fields based on selections
* Prevent order locking
* Updated playwright tests
* Add unit test
2025-11-19 15:40:41 +11:00
Oliver
40fbb4d810
Offload stock consume operations ( #10856 )
...
- These can be expensive if there are a lot of allocated items
- Offload to the background worker
2025-11-19 15:40:24 +11:00
Oliver
d06d80fb99
Bug fix for sales order pricing ( #10858 )
...
* Bug fix for sales order pricing
- Clear sale price field if no pricing
* Adjust playwright tests
2025-11-19 14:49:51 +11:00
Oliver
2799c4d1fe
Specify python version in netlify.toml ( #10859 )
2025-11-19 13:55:34 +11:00
Oliver
dab7223245
Updates for data exporting ( #10854 )
...
- Add option to exclude email logs from import / export
- Fix for pluginusersetting
2025-11-19 07:58:22 +11:00
Oliver
57a2de6ffc
[UI] Remove duplicate action ( #10844 )
...
- "Build Output" is same as "stock item" in this case
2025-11-17 19:52:35 +11:00
Oliver
770f7a292e
[UI] Fix for form OPTIONS query ( #10840 )
...
* [UI] Fix for form OPTIONS query
- Fetch OPTIONs each time form is opened
- Ensure default values are filled correctly
- Prevent issues with latching form state
* Add comment
* Add playwright test
- Check that the reference field increments properly
* Fix other Playwright tests
2025-11-16 21:59:27 +11:00
dependabot[bot]
2c508feeec
chore(deps): bump the dependencies group across 2 directories with 7 updates ( #10838 )
...
* chore(deps): bump the dependencies group across 2 directories with 7 updates
Bumps the dependencies group with 2 updates in the /docs directory: [mkdocs-macros-plugin](https://github.com/fralau/mkdocs_macros_plugin ) and [mkdocs-material](https://github.com/squidfunk/mkdocs-material ).
Bumps the dependencies group with 5 updates in the /src/backend directory:
| Package | From | To |
| --- | --- | --- |
| [dulwich](https://github.com/dulwich/dulwich ) | `0.24.8` | `0.24.10` |
| [sentry-sdk](https://github.com/getsentry/sentry-python ) | `2.43.0` | `2.44.0` |
| [xmlsec](https://github.com/mehcode/python-xmlsec ) | `1.3.14` | `1.3.17` |
| [coverage[toml]](https://github.com/coveragepy/coveragepy ) | `7.11.2` | `7.11.3` |
| [pip-tools](https://github.com/jazzband/pip-tools ) | `7.5.1` | `7.5.2` |
Updates `mkdocs-macros-plugin` from 1.4.1 to 1.5.0
- [Release notes](https://github.com/fralau/mkdocs_macros_plugin/releases )
- [Changelog](https://github.com/fralau/mkdocs-macros-plugin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/fralau/mkdocs_macros_plugin/compare/v1.4.1...v1.5.0 )
Updates `mkdocs-material` from 9.6.22 to 9.7.0
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases )
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG )
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.6.22...9.7.0 )
Updates `dulwich` from 0.24.8 to 0.24.10
- [Release notes](https://github.com/dulwich/dulwich/releases )
- [Changelog](https://github.com/jelmer/dulwich/blob/master/NEWS )
- [Commits](https://github.com/dulwich/dulwich/compare/dulwich-0.24.8...dulwich-0.24.10 )
Updates `sentry-sdk` from 2.43.0 to 2.44.0
- [Release notes](https://github.com/getsentry/sentry-python/releases )
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-python/compare/2.43.0...2.44.0 )
Updates `xmlsec` from 1.3.14 to 1.3.17
- [Release notes](https://github.com/mehcode/python-xmlsec/releases )
- [Commits](https://github.com/mehcode/python-xmlsec/compare/1.3.14...1.3.17 )
Updates `coverage[toml]` from 7.11.2 to 7.11.3
- [Release notes](https://github.com/coveragepy/coveragepy/releases )
- [Changelog](https://github.com/coveragepy/coveragepy/blob/main/CHANGES.rst )
- [Commits](https://github.com/coveragepy/coveragepy/compare/7.11.2...7.11.3 )
Updates `pip-tools` from 7.5.1 to 7.5.2
- [Release notes](https://github.com/jazzband/pip-tools/releases )
- [Changelog](https://github.com/jazzband/pip-tools/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jazzband/pip-tools/compare/v7.5.1...v7.5.2 )
---
updated-dependencies:
- dependency-name: mkdocs-macros-plugin
dependency-version: 1.5.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: mkdocs-material
dependency-version: 9.7.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: dulwich
dependency-version: 0.24.10
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: dependencies
- dependency-name: sentry-sdk
dependency-version: 2.44.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: xmlsec
dependency-version: 1.3.17
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: dependencies
- dependency-name: coverage[toml]
dependency-version: 7.11.3
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dependencies
- dependency-name: pip-tools
dependency-version: 7.5.2
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
* fix style
* remove old pin message
---------
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-11-16 07:32:03 +11:00
Oliver
aa9958bf11
[bug] State change fixes ( #10832 )
...
* Fix for setting custom status
* Fix for setting custom status when receiving stock items
* Allow caching for set_status
* Updated code and unit tests
2025-11-15 07:42:48 +11:00
Oliver
af4d9efd1d
devcontainer: Expose debug server on all ports ( #10833 )
...
- Required for new docker setup in devcontainer
2025-11-14 19:28:31 +11:00
Oliver
39d181ae5f
Make icons red again ( #10816 )
2025-11-14 18:12:41 +11:00
Oliver
ba9b5438b4
Char fix ( #10827 )
...
* Remove debouncing from text field
* Add debounce to data import field
* Only apply for strings values
* Fix unit test
* More unit test tweaks
2025-11-14 17:35:59 +11:00
Oliver
8cb808f613
Bug fix for loading boolean settings ( #10826 )
...
- Do not just cast to bool
- The string "False" casts to True in this case
- Use the function that supports strings
2025-11-14 08:26:24 +11:00
Oliver
0790dfff5b
[UI] Auto-fill stock allocation for build order ( #10819 )
...
* Auto-fill stock allocation for build order
* Auto-fill allocation for sales orders
* Prevent recursive auto-fills
2025-11-13 23:16:32 +11:00
Oliver
af6cce3aba
[UI] Duplicate supplier part ( #10809 )
...
* Allow duplication of supplier part
* Bug fix for pack quantity display
* Allow duplication of ManufacturerPart
2025-11-12 00:08:45 +11:00
Oliver
d829d3a548
[UI] Order form improvements ( #10802 )
...
* Auto-fill supplier parts in order wizard
* Copy supplier part SKU from order parts wizard
* Add "on_order" filter to BuildLine table
* Allow ordering by production and ordering quantities
* Allow specification of purchase price
* Bump API version
* Adjust UI testings
2025-11-11 17:29:18 +11:00
Oliver
f3c1cc12af
PO receive fix ( #10807 )
...
* Extract note field when receiving stock items against PO
* Fix tracking entry when receiving item
2025-11-11 17:29:09 +11:00
Oliver
77f80385c9
Fix for pricing display ( #10804 )
2025-11-11 16:19:20 +11:00
Oliver
246c084e6e
Reduce log output for Pint library ( #10803 )
...
- Reduce clutter in app startup due to unit redefinition
2025-11-11 13:33:43 +11:00
dependabot[bot]
682dd79326
chore(deps): bump the dependencies group with 2 updates ( #10798 )
...
Bumps the dependencies group with 2 updates: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action ) and [docker/metadata-action](https://github.com/docker/metadata-action ).
Updates `docker/setup-qemu-action` from 3.6.0 to 3.7.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases )
- [Commits](29109295f8...c7c5346462 )
Updates `docker/metadata-action` from 5.8.0 to 5.9.0
- [Release notes](https://github.com/docker/metadata-action/releases )
- [Commits](c1e51972af...318604b99e )
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-version: 3.7.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: docker/metadata-action
dependency-version: 5.9.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-11 12:54:14 +11:00
Matthias Mair
5d21bf2679
feat(backend)!: bump to dj 5.2 lts / py 3.11 ( #10730 )
...
* feat(backend): bump to 5.2 lts / python 3.11
This will give us support till 2027-10 (PEP 664)
* bump dependencies
* fix dflt version
* remove 3.9 precaution
* changes for 5.2
* changes for py 3.10
* debug command
* lower crypto again
* another lowering
* fix version string
* lower minimum version to 3.11
* update refs
* fix text
* reaking: remove now unsupported OS
* disable break
* remove temp changes
* fix ruff call
* fix remaining ruff warnings
* remove old arg
* lower allauth reqs
* replace old method
* fix issue with args passing beeing depreceated
* add changelog entries
* bump dependencies a bit further
* fix broken image init for now
might need a refactor
* fix another test
* refactor image name lookup
* mroe refactoring
* ensure str does not cause an issue
* update referenced function
* fix cal sig
* simplify method and add test
* refactor
* ignore wrong typings
* fix deprecated feature
* simplify
* ensure image tests do their job
* simplify
* re-add type check
* fix test
* fix assertations - wonder how long this was broken
* bump to newer versions
* bump deps
* fix assertation
2025-11-11 11:45:25 +11:00
Matthias Mair
f3e8482469
fix(backend): auth check middleware for specific media access ( #10784 )
...
* simplify
* fix return type
* handle token (app access)
* reduce lookup amount
* add positive test again
* add poisitive test
* move out settings
* add tests for Check2FAMiddleware
* add test for auth_request
* add a reverse name for auth_request
* auth tests refactors
* move test
* disable check for things that do not trigger
* fix typing for python 3.9
* make names clearer and add comments
* finish tests
* fix call
* re-enable mfa test without the timing component
* cleanup helper
* ignore easy out
* ignore scenario that can not happen
2025-11-10 08:58:58 +11:00
dependabot[bot]
726e852b7b
chore(deps): bump django from 4.2.25 to 4.2.26 in /src/backend ( #10781 )
...
* chore(deps): bump django from 4.2.25 to 4.2.26 in /src/backend
Bumps [django](https://github.com/django/django ) from 4.2.25 to 4.2.26.
- [Commits](https://github.com/django/django/compare/4.2.25...4.2.26 )
---
updated-dependencies:
- dependency-name: django
dependency-version: 4.2.26
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* fix style
* also bump docker version
---------
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-11-08 22:08:11 +01:00
Matthias Mair
b048ca3a04
refactor (frontend): reduce message and time in recovery codes ( #10778 )
...
* reduce showing of wrong info boxes
* stop waiting 30 sec when there is an error
2025-11-06 10:44:03 +11:00
Matthias Mair
2fc7c7eb54
improve docker dx with empty migration set ( #10774 )
...
* if we are in docker and empty - init db
* use structlog
* remove logging change
* reduce diff
* ignore in test mode
* add changes from review
2025-11-06 10:42:34 +11:00
Oliver
2dfe6b5f41
[UI] MFA Refactor ( #10775 )
...
* Install otpauth package
* Add separate MFASettings components
* Refresh methods after registering token
* Simplify layout
* Add modal for deleting TOTP code
* Display recovery codes
* Adjust text
* Register webauthn
* Add longer timeouts
* Add workflow for removing webauthn
* Cleanup SecurityContext.tsx
* Add playwright testing for TOTP registration
* Spelling fixes
* Delete unused file
* Better clipboard copy
2025-11-05 22:54:47 +11:00
Oliver
d12102ba96
PurchaseOrderForms tweaks ( #10773 )
...
- Small visual changes
- Small bug fix for null record
2025-11-05 10:21:55 +11:00
Oliver
dbb799a0e0
[UI] BOM part category ( #10772 )
...
* Add "Category" column to BOM Table
* Enable sorting by category in BOM table
* Add Category column to Buildline table
* Add Category filter to BuildLineTable
* Adjust queryset prefetch
* Bump API version and update CHANGELOG
2025-11-05 10:04:28 +11:00
Oliver
fc3d130888
Refactor settings.py ( #10766 )
...
- Move drf-spectacular settings into separate file
- Cleanup settings.py core file
2025-11-05 07:00:58 +11:00
Oliver
7e943293c7
MFA middleware tweaks ( #10768 )
...
* MFA middleware tweaks
- Remove Check2FAMiddleware if MFA not enabled
- Refactor into middleware.py
* Update settings.py
- Disable MFA_SUPPORTED_TYPES if MFA_ENABLED is False
* Update docs
2025-11-05 07:00:42 +11:00
Oliver
2bc2966d22
Reduce text size ( #10764 )
...
- Smaller text for table hovercards
2025-11-04 15:00:52 +11:00
Oliver
8e20bc53db
Consolidate data actions for BOM table ( #10763 )
...
* Consolidate data actions for BOM table
* Adjust playwright tests
2025-11-04 12:02:00 +11:00
Oliver
901846272b
Auth Improvements ( #10752 )
...
* Return more detail in MFA failure response
* Reject auth requests for users who are inactive
* Move markdown config out of settings.py
2025-11-04 10:08:04 +11:00
dependabot[bot]
a22e163b19
chore(deps): bump github/codeql-action in the dependencies group ( #10758 )
...
Bumps the dependencies group with 1 update: [github/codeql-action](https://github.com/github/codeql-action ).
Updates `github/codeql-action` from 4.31.0 to 4.31.2
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](4e94bd11f7...0499de31b9 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: 4.31.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-04 07:28:55 +11:00
Lê Hoàng Nam
39f0054cd5
code ( #10751 )
...
Co-authored-by: Le Hoang Nam <lehoangnam040>
2025-11-03 21:14:38 +11:00
Oliver
153bcc1d5c
Search stock items by supplier data ( #10750 )
...
* Search stock items by supplier data
* Search by MPN or Manufacturer
* Update API version
2025-11-03 15:03:50 +11:00
Oliver
0997a18a62
Move "view" actions to the end of the list ( #10749 )
2025-11-03 14:28:31 +11:00
Oliver
91489e986c
UI table updates ( #10748 )
...
- Add "IPN" col to SupplierPartTable
- Add "IPN" col to ManufacturerPartTable
2025-11-03 13:47:26 +11:00
Matthias Mair
e1bf67b32c
fix: typo ins installer stops script from working ( #10744 )
2025-11-03 10:31:52 +11:00
Matthias Mair
d7daf660ef
fix uv ( #10742 )
...
https://github.com/inventree/InvenTree/security/dependabot/248
2025-11-03 09:35:35 +11:00
Oliver
46615e447b
Docs fix ( #10738 )
...
* Fix heading in helpers.md
* Helper func docs
2025-11-02 15:30:21 +11:00
Oliver
551da5a51f
Bump version number to 1.2.0 dev ( #10734 )
...
* Bump version number to 1.2.0 dev
* Add release tag to CHANGELOG.md
* Add entry for upcoming 1.2.0
* Cleanup
* Remove links
2025-11-02 10:01:16 +11:00
github-actions[bot]
9d6f30b802
New Crowdin translations by GitHub Action ( #10685 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-01 14:54:42 +11:00