Commit Graph
100 Commits
Author SHA1 Message Date
Oliver Walters df9786f435 Remove blocknote deps 2026-06-04 08:46:40 +00:00
OliverandMatthias Mair bb0b82ddb2 Update docs/docs/concepts/notes.md
Co-authored-by: Matthias Mair <code@mjmair.com>
2026-06-04 18:44:45 +10:00
Oliver Walters b2cece10b3 Merge branch 'block-notes' of github.com:SchrodingersGat/InvenTree into block-notes 2026-06-03 02:15:07 +00:00
Oliver Walters 05514ec13a Fix migrations 2026-06-03 02:14:50 +00:00
Oliver 11e55fce17 Merge branch 'master' into block-notes 2026-06-03 12:05:41 +10:00
Oliver 8453f7afa2 Small docs changes (formatting) (#12073) 2026-06-03 12:01:43 +10:00
Oliver Walters 8bd9aa7179 Update migration files 2026-06-02 07:40:47 +00:00
Oliver Walters a7ae8c0738 Update API 2026-06-02 07:34:38 +00:00
Oliver Walters 38d896573f Merge commit '47c6906a74f41eed5b56f4dc43ea0d4e20415237' into block-notes 2026-06-02 07:33:29 +00:00
Oliver 47c6906a74 Remove "review_needed" field (#12071)
* Remove "review_needed" field

* Update CHANGELOG
2026-06-02 17:23:35 +10:00
Oliver 75e3f522d4 Fix for "can convert" logic (#12070)
- Fetch full part detail
2026-06-02 16:43:08 +10:00
Oliver 0f717e2749 Specify R as ohms (#12065)
* Specify R as ohms

* Adjust comments
2026-06-02 16:16:19 +10:00
Oliver d3be030486 Update dashboard widgets (#12068)
- Display loading overlay
- Fix bottom of chart to zero
2026-06-02 14:55:27 +10:00
Oliver Walters d7af743521 Merge branch 'block-notes' of github.com:SchrodingersGat/InvenTree into block-notes 2026-06-01 11:56:00 +00:00
Oliver Walters 8bf2152c93 Merge commit 'd38af61ba2fb3c87143da57ddd92bc4845f85a7c' into block-notes 2026-06-01 11:55:47 +00:00
Oliver d38af61ba2 [UI] Order history dashboard widgets (#12061)
* Add order history dashboard widgets

* Support icons for dashboard widgets

* Change StylishText size from 'lg' to 'md'
2026-06-01 21:44:25 +10:00
Oliver 7f86384a03 Fix for RenderInstance (#12058)
* Fix for RenderInstance

- Do not call useNavigate within RenderInstance
- This breaks any plugins which try to use RenderInstance
- Pass navigate func through to <RenderInstance />

* Add playwright test for hover in forms

* Add translated plugin test

* Improve playwright tests

* Further unit test fixes

* Update docstring
2026-06-01 21:44:02 +10:00
Oliver 4f41ebb75c Merge branch 'master' into block-notes 2026-06-01 20:04:46 +10:00
Oliver Walters 40c2775762 Merge commit '956468eb847754e701d207bae2a51a6a00ca7d56' into block-notes 2026-06-01 09:16:12 +00:00
Oliver f912ba501d [bug] Various fixes (#12057)
* [bug] Various fixes

- Add get_api_url to EmailThread model
- Prevent setting creation during import
- Tweak BarcodeScanHistoryTable

* Tweak barcode history table tests

* Bump API version
2026-06-01 14:30:23 +10:00
Oliver b2b476b570 [API] Fix 1 + N query for custom status fields (#12055)
* Add CustomStatusSerializerMixin

- Caches custom status values

* Add unit test for PurchaseOrder model

* Implement changes for StockItemSerializer

* Implement changes for BuildOrder

* Fix unit test

* Bump API version

* Add serializer field type hint
2026-05-31 13:38:18 +10:00
OliverandMatthias Mair 3a2e5b7ba7 Django admin permission updates (#12036)
* Tweak task offloading

- Improved function splitting
- Remove call to eval

* Read-only ScheduledTask admin

- Prevent admin users creating / editing / deleting scheduled tasks

* Add action for immediate trigger

* Prevent editing of UserSession via django admin

- Allow only read or delete
- No create or edit permissions

* Make StockTrackingAdmin read-only

* Reduce permission scope on common admin models

* Additional unit tests for task offloading

* Only superuser can change certain user fields

* Adjust unit test

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
2026-05-31 11:49:41 +10:00
Oliver 30243002a4 [UI] Can build (#12043)
* Fix for BuildDetail

* Update playwright tests

* update playwright

Ref: https://github.com/microsoft/playwright/issues/40998

* Fix hooks
2026-05-31 10:09:29 +10:00
Oliver 5d6d9f37cc [db] Postgresql setup (#12051)
* Adjust default postgres connection settings

* Support tcp_user_timeout

* Set application name based on running context

* Add CONN_MAX_AGE and CONN_HEALTH_CHECKS

* Add connection timeout option for mysql
2026-05-31 10:09:17 +10:00
Oliver 5560396fc1 [UI] Spotlight actions (#12049)
* [UI] error log shortcut

Add spotlight action to jump to error logs

* Add 'transfer orders' action
2026-05-30 23:18:27 +10:00
OliverandMatthias Mair 133a236565 gunicorn configuration tweaks (#12048)
- Ensure integer value
- Close any DB connections post forking

Co-authored-by: Matthias Mair <code@mjmair.com>
2026-05-30 23:01:31 +10:00
Oliver 5832718637 [UI] Hover instance (#12038)
* Add new user setting

* Implement hover-card for RenderInstance

* Allow override when calling RenderInstance

* Simplify

* Add link icon

* Adjust logic

* Simplify logic

* update playwright

Ref: https://github.com/microsoft/playwright/issues/40998
2026-05-30 23:00:52 +10:00
Oliver d2bec03d93 Fix for offloading of check_for_migrations (#12041)
* Do not raise exception in offload_task

* Revert "Do not raise exception in offload_task"

This reverts commit 9f9a9a5240.

* Improve offloading of check_for_migrations

* update playwright

Ref: https://github.com/microsoft/playwright/issues/40998
2026-05-30 21:39:53 +10:00
Oliver 7a83da7f39 [UI] Part lock notification (#12040)
* [UI] Part lock notification

- Add a notification when part lock status is updated

* update playwright

Ref: https://github.com/microsoft/playwright/issues/40998
2026-05-30 21:25:30 +10:00
Oliver e500b61029 [UI] Fix navigation tabs (#12037)
* [UI] Fix navigation tabs

- Better fidelity of user permissions

* Consider global settings also

* update playwright

Ref: https://github.com/microsoft/playwright/issues/40998
2026-05-30 21:22:35 +10:00
Oliver f607e1bebe Playwright caching (#12042)
* Playwright caching

* update playwright

Ref: https://github.com/microsoft/playwright/issues/40998
2026-05-30 21:11:03 +10:00
Oliver 09f733f3fb [UI] Part create fields (#12039)
* [UI] Part form adjustments

- Extract initial values from global settings
- Closes https://github.com/inventree/InvenTree/issues/11118

* update playwright

Ref: https://github.com/microsoft/playwright/issues/40998
2026-05-30 20:45:38 +10:00
Oliver f3be14467d Fix text for plugin activation dialog (#12021) 2026-05-28 06:33:43 +10:00
Oliver a9549c2e07 Count to location (#12019)
* Add "location" field to StockCountSerializer

* Adjust location on stock count

* Add unit tests

* Add docs

* Update API and CHANGELOG
2026-05-27 23:41:40 +10:00
Oliver 2d8fd18646 Merge branch 'master' into block-notes 2026-05-27 21:23:55 +10:00
Oliver 33483a3824 Plugin validation tweak (#12013)
* Prevent plugin validation actions during data import/export

* Simplify logic

* Further checks
2026-05-27 20:35:36 +10:00
Oliver 19182bacd0 [UI] Adjust table auto height (#12016)
* [UI] Adjust table auto height

- Better height selection
- Tested against more edge cases

* Fix comment
2026-05-27 18:50:52 +10:00
Oliver Walters b4bd68853a Prevent image clicking if not in editing mode 2026-05-27 06:45:57 +00:00
Oliver Walters bf675f1d85 Add documentation 2026-05-27 06:34:14 +00:00
Oliver Walters 55a39b28f2 Prevent navigate from dirty notes 2026-05-27 05:40:43 +00:00
Oliver Walters 8d4c201cb4 Fix "dirty" trigger on notes 2026-05-27 05:28:22 +00:00
Oliver Walters 09ab37578e Merge commit '00ad041e1b65754460c9fb9b6242f6e4e9295d2c' into block-notes 2026-05-27 04:43:55 +00:00
Oliver Walters 48cd60b8d8 Adjust migration text 2026-05-26 23:36:51 +00:00
Oliver Walters 42931fdb0f Fix migration order 2026-05-26 15:08:11 +00:00
Oliver Walters c0deb92460 Merge commit 'bc03f349085582e99606b94ff9c4cded905aeb1b' into block-notes 2026-05-26 15:06:32 +00:00
Oliver bc03f34908 Additional spotlight actions (#12012)
* Additional spotlight actions

* Fix memo
2026-05-27 01:00:36 +10:00
Oliver 0ee2f033bb [db] Stock creation date (#12011)
* Migrations

* Add to serializer

* Set the "creation_date" field to auto_now_add

* Ordering and filtering

* Add unit test

* Add "has_stocktake" filter

* Add test for data migration

* Additional unit tests for StockItem API endpoint

* Udpate API and CHANGELOG
2026-05-27 00:41:17 +10:00
Oliver Walters 9ecaf2c932 Render note to HTML
- Automatically replace images
2026-05-26 13:52:59 +00:00
Oliver Walters dc9e23cfc9 Add unit test for note image cleanup 2026-05-26 13:30:36 +00:00
Oliver Walters 6a5e606a65 Add report tags for notes 2026-05-26 13:28:13 +00:00
Oliver 540eb84796 [Feature] SalesOrder Auto-Allocate (#12000)
* Add basic auto-allocate functionality

- backend code
- background task
- API endpoint

* Add new endpoint enum

* add frontend components

* Tweak auto-allocate output

* Allow specifying of individual line items

* Tweak error boundary

* Enable bulk-delete of allocated items against sales order

* Refactor stock sorting options

* Allow user to select how to handle serialized stock

* Backport new functionality to BuildOrder allocation

* Refactor sorting options to use enumerated values

* Implement functional unit tests for new feature

* Update API and CHANGELOG

* Additional unit test

* Add playwright testing

* Documentation

* Update docs for build auto-allocate

* Fix dependencies

* Adjust build line filtering

* Fix serializer
2026-05-26 23:21:06 +10:00
Oliver d1b37466ce Merge branch 'master' into block-notes 2026-05-26 22:10:35 +10:00
Oliver Walters 36006c6416 Enhance editing logic 2026-05-26 12:05:19 +00:00
Oliver Walters 664eed1cae Move undo/redo 2026-05-26 11:49:32 +00:00
Oliver Walters 2b57413ed2 Use subtle editor variant 2026-05-26 11:48:51 +00:00
Oliver Walters f75444455d Adjust 2026-05-26 11:36:06 +00:00
Oliver Walters 73a3218bf3 Adjust back-end sanitizing 2026-05-26 11:15:58 +00:00
Oliver Walters 8396a9de54 Add data migration for SalesOrderShipment notes 2026-05-26 11:07:42 +00:00
Oliver Walters 277e22ad0d Adjust header actions 2026-05-26 10:47:26 +00:00
Oliver Walters 799e57ce2a Add table style 2026-05-26 10:42:55 +00:00
Oliver Walters 5c4f082fd0 Support tables 2026-05-26 10:40:35 +00:00
Oliver Walters c37c1e67af Resizable image support 2026-05-26 10:27:24 +00:00
Oliver Walters 36bc444f90 Change editor 2026-05-26 09:57:32 +00:00
Oliver 9e0787ab43 sqlite limitation docs (#12003)
* sqlite limitation docs

Ref: https://github.com/inventree/InvenTree/issues/12002

* Fix typo

* More typo tweaks
2026-05-26 07:03:38 +10:00
Oliver Walters 50b67ffee9 Remove NotesFieldMixin 2026-05-25 13:00:56 +00:00
Oliver Walters 9f77ae280c Adjust search params when switching notes 2026-05-25 12:51:41 +00:00
Oliver Walters 256cae228f Remove legacy "notes" field from older models 2026-05-25 12:43:12 +00:00
Oliver Walters be132bf21d Remove obsolete task 2026-05-25 12:34:31 +00:00
Oliver Walters cdd1b1d3a4 Refactor clean_string 2026-05-25 12:32:47 +00:00
Oliver Walters 618e368a01 Remove old fields from NotesImage model 2026-05-25 12:31:01 +00:00
Oliver Walters c58b7b835b Specify max field length 2026-05-25 12:30:48 +00:00
Oliver Walters 725ef0458a Update server side sanitizing 2026-05-25 12:27:28 +00:00
Oliver Walters d93d5f9b2f Updated API endpoints for NotesImage model 2026-05-25 12:09:01 +00:00
Oliver Walters c2e18932db Remove validator 2026-05-25 11:58:48 +00:00
Oliver Walters 24e8faddca Update data migration
- Find any NoteImage items which do not link to a model
- Try to associate them with an existing note
2026-05-25 11:48:09 +00:00
Oliver Walters 1260de6bce Updates 2026-05-25 10:37:01 +00:00
Oliver Walters d305ec2dd3 Skeleton for data migration 2026-05-25 10:04:05 +00:00
Oliver Walters 8f36287d12 Add support for image upload in editor 2026-05-25 09:56:52 +00:00
Oliver Walters 0df677d277 Ensure image file is deleted when NotesImage is deleted 2026-05-25 07:07:44 +00:00
Oliver Walters 4fff7ed589 Add link between Note and NotesImage 2026-05-25 07:05:54 +00:00
Oliver 8b99c33349 Merge branch 'master' into block-notes 2026-05-25 16:51:41 +10:00
Oliver Walters 29202f6147 Observe color mode 2026-05-25 05:43:56 +00:00
Oliver Walters 488f558e6a Add unit testing for HTML content 2026-05-25 05:40:16 +00:00
Oliver Walters d99487bf11 Support user locale 2026-05-25 05:38:05 +00:00
Oliver Walters 407ba3f9de Display note info 2026-05-24 10:52:07 +00:00
Oliver Walters d798aacb04 Layout tweaks 2026-05-24 10:40:12 +00:00
Oliver Walters 5813c4baea edit / delete existing notes from the UI 2026-05-24 10:33:09 +00:00
Oliver Walters 9e91663d07 Update note accessors 2026-05-24 10:10:28 +00:00
Oliver Walters 8377f53b6f Run nh3 cleaner over backend notes 2026-05-24 10:08:33 +00:00
Oliver Walters 754a4c2e74 Fix migration conflict 2026-05-24 09:42:19 +00:00
Oliver Walters 433892018f Merge commit 'dd1edce2e59172c86e85fdd09d6ed01d3fcfefe4' into block-notes 2026-05-24 09:40:54 +00:00
Oliver dd1edce2e5 Set reasonable table height (#11998) 2026-05-24 11:02:28 +10:00
Oliver 6530052471 [docs] Update documentation (#11997)
* Rearrange import / export docs

* Additional data export docs

* Additional docs for custom states

* Fix broken links
2026-05-24 10:05:06 +10:00
Oliver Walters 38e3c86307 Merge commit '749c4715ee022bdb39b500f5c3776c1ee18411e3' into block-notes 2026-05-23 23:30:06 +00:00
Oliver 749c4715ee Offload build output functions: (#11990)
* Offload build output functions:

- cancel output
- scrap output
- complete output

Perform these in the background worker, and monitor for progress on the frontend.

* Refactor "build cancel"

- Offload expensive ops to background worker

* Offload build complete task

* Remove @atomic decorator from functions

- Allows operations to be performed "incrementally"
- If one task times out, the next task will get the rest

* Bug fix

* Bump API version

* Fix isInTestMode check

* Handle case where task returns immediately

* Fix docstring

* fix test_api

* Tweak order of operations

* additional unit testing for further coverage

* Adjust unit tests

* Offload order completion tasks

* Remove bad code

* Updated playwright test

* Robustify playwright tests

* Bump number of allowed queries

* Revert "Remove bad code"

This reverts commit 3a3ac3bdc7.

* Revert "Offload order completion tasks"

This reverts commit 6066dabe43.
2026-05-24 09:26:43 +10:00
Oliver 7d61203be8 Global part lock (#11995)
* Add new global setting

* Update lock checks

* Bug fix for task comparison

* Update user interface

* Hide locked field if locking not enabled

* Update existing unit tests

* Update docs
2026-05-24 07:41:52 +10:00
Oliver 8e7465dd24 Enable table ordering (#11992)
- Closes https://github.com/inventree/InvenTree/issues/10987
2026-05-24 00:30:27 +10:00
Oliver a1ed5bcf94 Bug fix for task comparison (#11993) 2026-05-24 00:18:56 +10:00
Oliver Walters 5cd7bfa1e4 Merge commit '27ca0836e7c7e46ebb41ea98d507972ae7a6b018' into block-notes 2026-05-23 12:41:47 +00:00
Oliver 27ca0836e7 [refactor] Attachment images (#11961)
* Add new Attachment model fields:

- is_image
- thumbnail

* Cache if the attachment is an image

* Add new setting for controlling max upload size

* Validate uploaded attachment file

* Add tqdm for progress bars

* Refactor migrations

- Don't need is_image field
- Can introspect from the thumbnail

* Data migration for existing attachments

* Bump API version

* Update tests and validators

* Add "is_image" field to the Attachment model

* Offload to background task

* Implement unit tests

* Docs

* Add unit test for data migration

* Additional unit test

* Omit migration tests from code coverage

* Additional unit tests
2026-05-22 23:37:32 +10:00