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
c1c9fa7dd3
Merge branch 'master' into generic-parameters
2025-11-11 23:27:27 +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
Oliver Walters
59563e7b48
Refactor UI table for parameter templates
2025-11-10 13:11:15 +00:00
Oliver Walters
5f067e2c50
API endpoints for Parameter instances
2025-11-10 11:57:33 +00:00
Oliver Walters
c1cd327fc2
Update InvenTreeParameterMixin class
...
- Fetch queryset of all linked Parameter instances
- Ensure deletion of linked instances
2025-11-10 11:19:40 +00:00
Oliver Walters
c349152d30
Add django admin site integration
2025-11-10 11:16:30 +00:00
Oliver Walters
3ea0be2ef4
Add definition for Parameter model
2025-11-10 11:06:01 +00:00
Oliver Walters
86cc826671
API updates
...
- Fix options for model_type
- Add API filters
2025-11-10 10:37:03 +00:00
Oliver Walters
06688d8a56
Add validator for ParameterTemplate model type
...
- Update migrations
- Make Parameter class abstract (for now)
- Validators
2025-11-10 10:29:24 +00:00
Oliver Walters
ed8b7732ea
Merge branch 'generic-parameters' of github.com:SchrodingersGat/InvenTree into generic-parameters
2025-11-10 04:29:49 +00:00
Oliver Walters
1fd547efa8
Merge commit 'f3e84824690f0d01316847e053e4b036a188337d' into generic-parameters
2025-11-09 22:28:58 +00: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
Oliver
4914bf45a1
Merge branch 'master' into generic-parameters
2025-11-09 20:09:20 +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
dependabot[bot]
67723ce142
chore(deps): bump the dependencies group across 2 directories with 14 updates ( #10728 )
...
* chore(deps): bump the dependencies group across 2 directories with 14 updates
Bumps the dependencies group with 2 updates in the /docs directory: [mkdocs-git-revision-date-localized-plugin](https://github.com/timvink/mkdocs-git-revision-date-localized-plugin ) and [mkdocs-macros-plugin](https://github.com/fralau/mkdocs_macros_plugin ).
Bumps the dependencies group with 11 updates in the /src/backend directory:
| Package | From | To |
| --- | --- | --- |
| [django](https://github.com/django/django ) | `4.2.25` | `5.2.7` |
| [django-filter](https://github.com/carltongibson/django-filter ) | `25.1` | `25.2` |
| [django-structlog](https://github.com/jrobichaud/django-structlog ) | `9.1.1` | `10.0.0` |
| [dulwich](https://github.com/dulwich/dulwich ) | `0.24.1` | `0.24.8` |
| [pint](https://github.com/hgrecco/pint ) | `0.24.4` | `0.25` |
| [python-dotenv](https://github.com/theskumar/python-dotenv ) | `1.1.1` | `1.2.1` |
| [sentry-sdk](https://github.com/getsentry/sentry-python ) | `2.42.1` | `2.43.0` |
| [django-stubs](https://github.com/sponsors/typeddjango ) | `5.1.3` | `5.2.7` |
| [django-test-migrations](https://github.com/wemake-services/django-test-migrations ) | `1.4.0` | `1.5.0` |
| [django-types](https://github.com/sbdchd/django-types ) | `0.20.0` | `0.22.0` |
| [isort](https://github.com/PyCQA/isort ) | `6.1.0` | `7.0.0` |
Updates `mkdocs-git-revision-date-localized-plugin` from 1.4.7 to 1.5.0
- [Release notes](https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/releases )
- [Commits](https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/compare/v1.4.7...v1.5.0 )
Updates `mkdocs-macros-plugin` from 1.4.0 to 1.4.1
- [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.0...v1.4.1 )
Updates `django` from 4.2.25 to 5.2.7
- [Commits](https://github.com/django/django/compare/4.2.25...5.2.7 )
Updates `setuptools` from 80.9.0 to
- [Release notes](https://github.com/pypa/setuptools/releases )
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst )
- [Commits](https://github.com/pypa/setuptools/commits )
Updates `django-filter` from 25.1 to 25.2
- [Release notes](https://github.com/carltongibson/django-filter/releases )
- [Changelog](https://github.com/carltongibson/django-filter/blob/main/CHANGES.rst )
- [Commits](https://github.com/carltongibson/django-filter/compare/25.1...25.2 )
Updates `django-structlog` from 9.1.1 to 10.0.0
- [Changelog](https://github.com/jrobichaud/django-structlog/blob/main/docs/changelog.rst )
- [Commits](https://github.com/jrobichaud/django-structlog/compare/9.1.1...10.0.0 )
Updates `dulwich` from 0.24.1 to 0.24.8
- [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.1...dulwich-0.24.8 )
Updates `pint` from 0.24.4 to 0.25
- [Changelog](https://github.com/hgrecco/pint/blob/master/CHANGES )
- [Commits](https://github.com/hgrecco/pint/compare/0.24.4...0.25 )
Updates `python-dotenv` from 1.1.1 to 1.2.1
- [Release notes](https://github.com/theskumar/python-dotenv/releases )
- [Changelog](https://github.com/theskumar/python-dotenv/blob/main/CHANGELOG.md )
- [Commits](https://github.com/theskumar/python-dotenv/compare/v1.1.1...v1.2.1 )
Updates `sentry-sdk` from 2.42.1 to 2.43.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.42.1...2.43.0 )
Updates `django-stubs` from 5.1.3 to 5.2.7
- [Commits](https://github.com/sponsors/typeddjango/commits )
Updates `django-test-migrations` from 1.4.0 to 1.5.0
- [Release notes](https://github.com/wemake-services/django-test-migrations/releases )
- [Changelog](https://github.com/wemake-services/django-test-migrations/blob/master/CHANGELOG.md )
- [Commits](https://github.com/wemake-services/django-test-migrations/compare/1.4.0...1.5.0 )
Updates `django-types` from 0.20.0 to 0.22.0
- [Changelog](https://github.com/sbdchd/django-types/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sbdchd/django-types/commits )
Updates `isort` from 6.1.0 to 7.0.0
- [Release notes](https://github.com/PyCQA/isort/releases )
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md )
- [Commits](https://github.com/PyCQA/isort/compare/6.1.0...7.0.0 )
---
updated-dependencies:
- dependency-name: mkdocs-git-revision-date-localized-plugin
dependency-version: 1.5.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: mkdocs-macros-plugin
dependency-version: 1.4.1
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: dependencies
- dependency-name: django
dependency-version: 5.2.7
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: dependencies
- dependency-name: setuptools
dependency-version:
dependency-type: direct:production
dependency-group: dependencies
- dependency-name: django-filter
dependency-version: '25.2'
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: django-structlog
dependency-version: 10.0.0
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: dependencies
- dependency-name: dulwich
dependency-version: 0.24.8
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: dependencies
- dependency-name: pint
dependency-version: '0.25'
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: python-dotenv
dependency-version: 1.2.1
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: sentry-sdk
dependency-version: 2.43.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: django-stubs
dependency-version: 5.2.7
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: django-test-migrations
dependency-version: 1.5.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: django-types
dependency-version: 0.22.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: isort
dependency-version: 7.0.0
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
* fix style
* fix style
---------
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-01 12:08:37 +11:00
Oliver
5ea39936b8
Order parts form ( #10729 )
...
* Improved SupplierPart rendering
* Adjust tooltips
* Remove debug msg
* Add component for loading and displaying part requirements
* Improved rendering
* Better icons
2025-11-01 10:14:53 +11:00
Oliver
442a616432
Support attachments against SupplierPart ( #10724 )
...
* Support attachments against SupplierPart
* Update CHANGELOG.md
* API update
2025-10-31 21:23:23 +11:00
Oliver
0527d78ae6
Report helpers ( #10726 )
...
* New report functions:
- create_currency: Create a new Money object
- convert_currency: Convert from one currency to another
* docs
* More checking on report tags
* Better formatting of report errors
* Add unit tests
* Remove error message
* Fix pathing for docs
* Add type hints
* Adjust unit tests
2025-10-31 21:23:10 +11:00
Oliver
46ea541bc4
Push BOM validation to background worker ( #10727 )
...
- Can take a significant amount of time
- Closes https://github.com/inventree/InvenTree/issues/10725
2025-10-31 20:41:31 +11:00
Oliver
16a753bf59
[UI] Plugin actions ( #10720 )
...
* Add backend code for custom actions
* docs
* Add sample action code
* Fetch plugin features
* Load plugins and call function
* Support icons
* Alert message
* Update CHANGELOG.md
* Rename action type
* Update docs
* pdated playwright tests
2025-10-31 09:41:32 +11:00
Akhil Singh
8d1f7f39b4
Fix selection list items not displaying values ( #10722 )
...
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.
Signed-off-by: Akhil Singh <singhakhil69@gmail.com >
2025-10-31 08:59:56 +11:00