Oliver Walters
5771cfa20d
Refactoring some code
2025-11-25 01:06:54 +00:00
Oliver Walters
48931d0061
Define GenericRelationship for linking model
2025-11-25 00:54:14 +00:00
Oliver Walters
6e1292aa62
Revert change to parameters property
2025-11-24 23:56:01 +00:00
Oliver Walters
b6c38b91e1
Refactor API filtering for endpoints
...
- Specify ContentType by ID, model or app label
2025-11-24 23:03:31 +00:00
Oliver Walters
ccc3997518
Adds ContentTypeField
...
- Handles representation of content type
- Provides human-readable options
2025-11-24 13:27:04 +00:00
Oliver Walters
6c76b309bf
Add custom serializer field for ContentType with choices
2025-11-24 13:14:36 +00:00
Oliver Walters
019494420a
Fixes for table structure
2025-11-24 12:45:36 +00:00
Oliver Walters
1c7789a286
Add generic relationship to allow reverse lookups
2025-11-24 12:35:43 +00:00
Oliver Walters
e9d42bd898
Use GenericForeignKey
2025-11-24 12:31:32 +00:00
Oliver Walters
173839d76b
Check global setting for unit validation
2025-11-24 12:22:52 +00:00
Oliver Walters
2432762451
Fix typos
2025-11-24 12:22:32 +00:00
Oliver Walters
b1fa9ab889
Update global setting
2025-11-24 12:02:19 +00:00
Oliver Walters
d075729ea4
Removed dead API code
2025-11-24 11:52:10 +00:00
Oliver Walters
2db98fb624
Add verbose name to ParameterTemplate model
2025-11-24 11:44:54 +00:00
Oliver Walters
d25696c4b0
Add data import for parameter table
2025-11-24 11:41:45 +00:00
Oliver Walters
71511bab3a
Fix for filters
2025-11-24 11:31:55 +00:00
Oliver Walters
9ceaad0848
Remove code for ManufacturerPartParameter
2025-11-24 11:28:00 +00:00
Oliver Walters
9bcdc7ddcd
Change migration for part parameter
...
- Make it "universal"
2025-11-24 11:12:28 +00:00
Oliver Walters
daea1706a2
Enable parameters for Company model
2025-11-24 09:25:15 +00:00
Oliver Walters
e9b5dde992
Implement generic "parameter" table
2025-11-24 09:20:10 +00:00
Oliver Walters
3258cf268a
Merge branch 'generic-parameters' of github.com:SchrodingersGat/InvenTree into generic-parameters
2025-11-24 05:49:19 +00:00
Oliver and GitHub
39096bbb1b
Merge branch 'master' into generic-parameters
2025-11-24 16:49:15 +11:00
Oliver and GitHub
89e3d605c5
Update postgres version ( #10895 )
...
- docker setup uses postgres:17
- Documentation incorrectly stated postgres:16
- Update CI to use postgres:17 also
2025-11-24 16:48:59 +11:00
Oliver Walters
ada982d4e5
Merge branch 'generic-parameters' of github.com:SchrodingersGat/InvenTree into generic-parameters
2025-11-24 04:45:50 +00:00
Oliver and GitHub
5c7c15ef1b
Merge branch 'master' into generic-parameters
2025-11-24 15:44:41 +11:00
Oliver and GitHub
276041ae54
[bug] Migration test fix ( #10899 )
...
* Pop instead of get
* Better error handling for unit registry
* Prevent caching during database migrations
* Remove debug msg
* Revert changes
2025-11-24 14:52:13 +11:00
Oliver and GitHub
7d5429303e
Error messages ( #10894 )
...
* Add INVE-E14 - Error in config file
* Add INVE-E14
* Fix duplicate code
* Fix numbering
2025-11-23 23:11:12 +11:00
Oliver Walters
4b2f510a73
Rough-in new table
2025-11-23 12:10:54 +00:00
Oliver Walters
8c120b03ec
Add new field to serializer
2025-11-23 12:02:01 +00:00
Oliver Walters
3c03727500
Add "enabled" field to ParameterTemplate model
2025-11-23 11:59:31 +00:00
Oliver Walters
f743023c83
Add comment for later
2025-11-23 09:19:02 +00:00
Oliver and GitHub
d6e1c37af2
Merge branch 'master' into generic-parameters
2025-11-23 19:56:37 +11:00
Oliver and GitHub
e590522909
[UI] Fix for PartTestResultTable ( #10886 )
...
* [UI] Fix for PartTestResultTable
- Filter properly by part instance
* Add a simple unit test
* Tweak unit test
2025-11-22 17:20:49 +11:00
Oliver and GitHub
a7ff1250ba
[bug] Serialize location ( #10882 )
...
* Properly set location id when serializing stock
* Add correct tracking entries
* Add unit test
2025-11-22 12:56:31 +11:00
Oliver and GitHub
f50d568b23
[plugin] Add printing delay to sample machines ( #10873 )
...
* [plugin] Add printing delay to sample machines
- Useful for testing
- Default is zero
* Add backup_value to MachineSetting.get_setting
* Fix call to machine.get_setting
* Fix for printing logic
* Simplify code
2025-11-21 14:56:23 +11:00
Oliver and GitHub
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 and GitHub
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 and GitHub
94f4ef5c1b
Merge branch 'master' into generic-parameters
2025-11-20 22:32:29 +11:00
Oliver and GitHub
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
Oliver and GitHub
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 and GitHub
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
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 and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
2799c4d1fe
Specify python version in netlify.toml ( #10859 )
2025-11-19 13:55:34 +11:00
Oliver and GitHub
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 and GitHub
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 and GitHub
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
Oliver and GitHub
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 and GitHub
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 and GitHub
39d181ae5f
Make icons red again ( #10816 )
2025-11-14 18:12:41 +11:00
Oliver and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
c1c9fa7dd3
Merge branch 'master' into generic-parameters
2025-11-11 23:27:27 +11:00
Oliver and GitHub
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 and GitHub
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 and GitHub
77f80385c9
Fix for pricing display ( #10804 )
2025-11-11 16:19:20 +11:00
Oliver and GitHub
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
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
Oliver and GitHub
4914bf45a1
Merge branch 'master' into generic-parameters
2025-11-09 20:09:20 +11:00
Oliver and GitHub
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 and GitHub
d12102ba96
PurchaseOrderForms tweaks ( #10773 )
...
- Small visual changes
- Small bug fix for null record
2025-11-05 10:21:55 +11:00
Oliver and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
2bc2966d22
Reduce text size ( #10764 )
...
- Smaller text for table hovercards
2025-11-04 15:00:52 +11:00
Oliver and GitHub
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 and GitHub
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
Oliver and GitHub
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 and GitHub
0997a18a62
Move "view" actions to the end of the list ( #10749 )
2025-11-03 14:28:31 +11:00
Oliver and GitHub
91489e986c
UI table updates ( #10748 )
...
- Add "IPN" col to SupplierPartTable
- Add "IPN" col to ManufacturerPartTable
2025-11-03 13:47:26 +11:00
Oliver and GitHub
46615e447b
Docs fix ( #10738 )
...
* Fix heading in helpers.md
* Helper func docs
2025-11-02 15:30:21 +11:00
Oliver and GitHub
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
Oliver and GitHub
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 and GitHub
442a616432
Support attachments against SupplierPart ( #10724 )
...
* Support attachments against SupplierPart
* Update CHANGELOG.md
* API update
2025-10-31 21:23:23 +11:00
Oliver and GitHub
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 and GitHub
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 and GitHub
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
Oliver and GitHub
62440893c1
[UI] More actions ( #10719 )
...
* Add more spotlight actions:
- Open user settings
- Open system settings
* Add some actions
* Multiple attempts in test code
2025-10-30 22:05:55 +11:00
Oliver Walters
4b8ce00fbf
Scaffolding
2025-10-30 08:05:45 +00:00
Oliver and GitHub
ec9b6e7f84
Fix default storage target value ( #10718 )
...
* Fix default storage target value
* Use enum values for comparison
* Fix typo
2025-10-30 14:45:45 +11:00
Oliver and GitHub
c1bbef1a4d
Format number fix ( #10710 )
...
* Improvements for format_number func
- Prevent accidental rendering in scientific notation
* Add multiplier argument to format_number
2025-10-29 16:02:08 +11:00
Oliver and GitHub
51babacec0
[UI] Duplicate part fixes ( #10709 )
...
* Refactor part duplication
- Move duplication items into the form definition
* Expand to part variants table
2025-10-29 14:28:22 +11:00
Oliver and GitHub
c7593d983f
[UI] Fix BuildLineTable ( #10707 )
...
- Closes https://github.com/inventree/InvenTree/issues/10700
2025-10-29 13:46:09 +11:00
Oliver Walters
36dfec34d0
API endpoints for ParameterTemplate
2025-10-28 11:36:07 +00:00
Oliver Walters
5748c2e684
Admin integration
2025-10-28 11:23:44 +00:00
Oliver Walters
44b9398c5d
Apply data migration for templates
2025-10-28 11:17:58 +00:00
Oliver Walters
8bc131c93d
Add ParameterTemplate model
...
- Data structure duplicated from PartParameterTemplate
2025-10-28 11:12:09 +00:00
Oliver and GitHub
f2b531bfbb
[UI] Fixes ( #10697 )
...
* Fix for StockItemTestResultTable
- Fix column alignment
* Update rendering
* Refactor <SupplierPartTable />
- Formalize parameter arguments
2025-10-28 20:18:56 +11:00