Commit Graph
100 Commits
Author SHA1 Message Date
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
Oliver 5489656016 [UI] Fix settings rendering (#11987)
- Do not duplicate global plugin settings
2026-05-22 15:19:01 +10:00
Oliver 5718b49bf1 Fix text size in build line table (#11986) 2026-05-22 14:37:48 +10:00
OliverandMatthias Mair 8ae0a5ea66 Tree delete API (#11979)
* Add API serializer for deleting a location

* Add serializer for part category delete

* Bump API version

* Fix unit tests

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
2026-05-22 14:37:36 +10:00
Oliver 8b9ea43b5b [UI] Lock action (#11981)
- Toggle part lock directly from existing icon
2026-05-22 10:21:23 +10:00
Oliver e392348654 [UI] Calendar tooltips (#11980)
* Allow tooltips for calendar entries

* Render tooltip for purchase order calendar

* Calendar tooltip renderers

* Add tooltip for build calendar

* Add key to filter list

* Display responsible owner
2026-05-22 00:17:11 +10:00
Oliver Walters 7315c344f1 Merge branch 'block-notes' of github.com:SchrodingersGat/InvenTree into block-notes 2026-05-21 11:50:11 +00:00
Oliver Walters 0c1aa65cb9 Remove old deps 2026-05-21 11:49:41 +00:00
Oliver Walters 136c9256cb remove old editor 2026-05-21 11:47:58 +00:00
Oliver Walters 36e81c40c9 Sanitize before uploading 2026-05-21 11:46:37 +00:00
Oliver Walters 689bd1f224 Refactor save UX 2026-05-21 11:45:01 +00:00
Oliver Walters df340e363c Load notes into editor 2026-05-21 09:59:47 +00:00
Oliver fd3d64de99 Merge branch 'master' into block-notes 2026-05-21 19:59:00 +10:00
Oliver Walters 9e8764d28a Fix conflict (for now) 2026-05-21 09:27:08 +00:00
Oliver Walters c7d11dc939 Mark content field as 'safe' 2026-05-21 09:25:19 +00:00
Oliver Walters d77be246ae Add unit test 2026-05-21 07:51:05 +00:00
Oliver Walters c18fd25431 Update serializer 2026-05-21 07:26:54 +00:00
Oliver Walters ab0da25de8 Add "primary" field to Note model 2026-05-21 07:26:28 +00:00
Oliver 3f3433685d Normalize BomItem quantity (#11975)
- Limit decimal places before save
- Prevents error in BomItem validation
2026-05-21 16:43:49 +10:00
Oliver Walters ac8e8d978c Add "no notes" item 2026-05-20 12:31:31 +00:00
Oliver Walters bc197f9409 Omit migration tests from code coverage 2026-05-20 12:22:19 +00:00
Oliver Walters a0e528a509 Create new notes 2026-05-20 12:13:59 +00:00
Oliver Walters 51d8468e76 Fix serializer 2026-05-20 11:57:02 +00:00
Oliver Walters 6df13fe156 Add note mixin support for existing models 2026-05-20 11:50:55 +00:00
Oliver Walters 88158610af Add notes fetch 2026-05-20 11:43:17 +00:00
Oliver 9cac925e91 Prevent edit serial (#11964)
* Add new global setting

* Run serial number validation check

* Disable field in frontend

* Add unit test

* Docs tweak
2026-05-19 17:06:05 +10:00
Oliver Walters 19c497fb19 Merge commit '99358eb4e7e4b051fd35c0b72c5d75e11ea5f2ec' into block-notes 2026-05-19 06:43:01 +00:00
Oliver 99358eb4e7 Remove image download support (#11962)
* Remove image download support

- Helper function remains (it is used in the supplier plugin mixin)
- No longer available to user
- Close massive security hole entirely
- Will be defunct soon anyway (moving to generic attachments)

* Update CHANGELOG.md

* Bump API version

* Fix for unit tests
2026-05-19 07:02:05 +10:00
Oliver Walters 1078475acb API / serializer updates 2026-05-18 14:18:04 +00:00
Oliver Walters 176733d762 Add basic tab group for switching notes 2026-05-18 14:07:58 +00:00
Oliver Walters 71d51ff7b4 Add new generic "notes" model 2026-05-18 13:56:34 +00:00
Oliver Walters 01bc34e08a Add new notes editor using blocknote 2026-05-18 13:46:47 +00:00
Oliver Walters eff83e745e Install packages for blocknote 2026-05-18 13:42:11 +00:00
Oliver acc2786e44 [feature] Rename attachments (#11920)
* Implementation

* Update API and CHANGELOG

* Annotate response type

* Simplify attachment renaming

- Use the existing API endpoint

* Capture the actual saved path

* Tweak attachment table fields

* Use built-in validation

* Update docs

* Unit testing

* Ignore some lines from coverage

* Check if file exists before deleting
2026-05-18 20:02:46 +10:00
Oliver 73c7820ac0 Fix for dashboard item logic (#11960)
- Render cached value
2026-05-17 20:21:08 +10:00
OliverandMatthias Mair 9f78e994c2 [UI] Mantine 9 (#11947)
* Update mantine deps

* Get it to compile

* Update QueryCount widgets

- use new RollingNumber component

* Table updates

- Remove "hack" for column ordering

* "Fix" the column pinning bug (maybe?)

* Fix ColumnRenderers.tsx

* Fix login code for playwright

* Remove hashing requirement

* Fix build tests

* More fixes

* More test fixes

* Fix playwright test for dashboard item

* Update frontend version

* Update changelog

* Reduce query repeats

* More playwright fixes

* Further playwright fixes

* Fix for useFilterSet hook

* Fix unique key error

* Fix rendering issues when opening edit forms

* reduce console errors

* Fix unique key issues in search drawer

* Update frontend CHANGELOG.md

* More form tweaks

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
2026-05-17 19:26:37 +10:00
Oliver c09848422c [UI] Panel indicator badges (#11956)
* Refactor panel indicator dots

- Allow indicator status to be fetched async

* Add indicator dot for attachments

* Support parameters panel

* Refactor

- Expose more types to @lib
- Define new PanelIndicatorType type
- Support old interface
2026-05-17 10:58:23 +10:00
Oliver d6f257dc58 Receive items requrires the "add" role - POST action (#11946) 2026-05-15 11:51:58 +10:00
Oliver c931ab6815 [bug] Bulk edit fix (#11945)
* Prevent editing of items which do not point directly to the part

* Allow table to define which records can be selected
2026-05-15 00:24:22 +10:00
Oliver 6e2a867c92 [bug] Fix for report generation context (#11941)
* Provide explicit user information to report context

* Pass user information through to offloaded task

* Pass user information back to the plugin

* Fix user passing

* Add more complex unit test for report printing

- Test debug ON / OFF
- Test merge ON / OFF
- Check generated data output

* Unit testing for label generation

* Further refactoring

- Remove "request" from printing context entirely

* Simplify argument drilling

* Robustify unit tests
2026-05-14 11:25:20 +10:00
Oliver 3d2577b411 [UI] Refactor order table filters (#11939)
* Refactor build order filters

- Common set of filters for build order views

* Refactor PurchaseOrder filters

* Update company table

* Refactor SalesOrder filters

* Refactor common filters

* Refactor ReturnOrder table filters
2026-05-13 20:24:40 +10:00
Oliver 573c82f98d Refactor part table filters (#11938)
- Expose extended filters to the parameteric table
2026-05-13 18:08:28 +10:00
OliverandCopilot d0acbf1191 [UI] Adjust week start date (#11934)
* Adjust week start date

Co-authored-by: Copilot <copilot@github.com>

* Change to global setting

---------

Co-authored-by: Copilot <copilot@github.com>
2026-05-13 17:32:59 +10:00
OliverandCopilot 727ca62883 External order checks (#11935)
* Add new global settings

Co-authored-by: Copilot <copilot@github.com>

* Validation logic

Co-authored-by: Copilot <copilot@github.com>

* Remove one setting

- Already covered if build order requires validation

* Add unit test

Co-authored-by: Copilot <copilot@github.com>

---------

Co-authored-by: Copilot <copilot@github.com>
2026-05-13 15:16:34 +10:00
Oliver 5d72eb4f1d [API] Role fix (#11932)
- Allow users to view BOM validation information with bom.view role
2026-05-12 14:39:40 +10:00