github-actions[bot]
933330fa51
New Crowdin translations by GitHub Action ( #8683 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-23 10:36:39 +11:00
Matthias Mair
aa905166c5
Switch to zoneinfo from pytz ( #7645 )
...
* switch to zoneinfo from pytz
* fix lookup
* fix assert
* fix another round of assertions
2024-12-23 08:46:31 +11:00
Oliver
d8207c88f0
Remove unused setting ( #8731 )
2024-12-21 08:33:31 +11:00
Matthias Mair
aad5575cd2
Fix MFA auth flow ( #8720 )
...
* Re-add html account base
Fixes #8690
* fix base template
2024-12-20 07:21:22 +11:00
Oliver
53792693f5
Allow backup_value to be specified to the 'getkey' report helper ( #8719 )
2024-12-19 09:24:01 +11:00
Oliver
6634bc54bd
Remove javascript rendering ( #8713 )
2024-12-19 07:34:01 +11:00
Oliver
88bfb23362
Cleanup tags ( #8712 )
...
* Remove part_allocation_count tag
* Remove more dead tags
2024-12-19 07:33:48 +11:00
Oliver
e37e72357a
Cleanup old settings ( #8709 )
...
* Use LABEL_ENABLE and REPORT_ENABLE settings in PUI
* Cleanup base.html
- Should reduce db hits slightly
* Remove defunct homepage settings
* Cleanup old settings
* Adjust unit test
2024-12-19 07:31:59 +11:00
Matthias Mair
1c9f56011c
Various SAST fixes ( #8718 )
...
* fix type
* fix typing
* fix python:S5713
* fix python:S1066
* fix python:S3516
* fix python:S5727
* fix python:S5886
2024-12-19 07:31:33 +11:00
Oliver
1493bbaac6
[Refactor] Template fix ( #8710 )
...
* Commonize favicon template
* Cleanup templates
2024-12-19 01:18:13 +11:00
Oliver
4569fd273d
Cast barcode scan IDs to list ( #8701 )
...
- Fixes issues with limitations on old MySQL server
2024-12-18 16:51:32 +11:00
Oliver
9f1d1abd5b
Remove "crispy forms" integration ( #8684 )
...
* Remove "crispy forms" integration
- No longer doing any back-end form rendering
* Remove django-formtools package
* Fix comment in settings.py
---------
Co-authored-by: Matthias Mair <code@mjmair.com>
2024-12-18 09:25:14 +11:00
Oliver
886d1b39cf
Remove old javascript file ( #8697 )
2024-12-18 09:14:45 +11:00
Matthias Mair
8fcb3c2506
Refactor auth adaptations into dedicated file ( #8687 )
...
* Update docker.yaml (#278 )
* reset
* rename functions to better reflect function
* move authentication behaviour overrides to explicit file
* fix import order
* fix import path
2024-12-17 22:20:21 +11:00
Oliver
acb756eacc
Remove custom context processors ( #8540 )
...
* Remove custom context processors
- Only merge after 0.17.0 release
- Remove code which injects custom context variables into CUI requests
- Not needed for new API-based PUI code
- Speeds up requests - remove unnecessary DB hits
* Remove broken import
* Remove custom staticfile processing
- No longer needed as CUI is gone
2024-12-17 13:48:43 +11:00
Matthias Mair
24f433c948
Remove CUI ( #8384 )
...
* remove CUI
* fix loading
* fix login middleware
* remove css template functions
* tmp fix for recurtion
* remove old test
* fix assertations
* fix middleware tests
* re-add plugin tags
* remove thirdpartjs
* re-add mfa urls
* remove old js
* remove cui tags
* simplify error testing
* use license endpoint for testing instead
* disable successful test
* revert de-activation
* remove references to old UI customisation
* update docs to remove reference to removed page
* disable availabilty check
* possible fix to importing problem
* Revert "possible fix to importing problem"
This reverts commit ee9fccdc8c5a3e1a6acf9ed029337ac5db5c2b0c.
* remove old get_context_data
* fix migration
* remove unused function
* remove unused stuff
* remove unused template
* fix formatting of readme
2024-12-17 12:30:41 +11:00
Matthias Mair
d4be203b03
small style changes ( #8681 )
2024-12-17 10:31:21 +11:00
github-actions[bot]
5d2329651a
New Crowdin translations by GitHub Action ( #8668 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-17 10:09:12 +11:00
Oliver
3041d9050b
Bump version number ( #8677 )
...
- Update to 0.18.0 dev
- Will likely become 1.0.0 dev
2024-12-17 09:16:38 +11:00
Oliver
d42435c841
[Refactor] Barcode scanning ( #8658 )
...
* Enhance SupplierPart barcode mixin
- Provide richer response based on available data
* Add comment
* Add new fields to BarcodePOReceiveSerializer
* Add "supplier" information to serializer
* Add 'is_completed' method for PurchaseOrderLineItem
* Refactor SupplierBarcodeMixin
* Tweak error message
* Logic fix
* Fix response data
* Improved error checking
* Bump API version
* Bump API version
* Error handling
- Improve get_supplier_part method
- Error handling
- Wrap calls to external plugins
* Enhanced unit testing and exception handling
* More exception handling
* Fix circula imports
* Improve unit tests
* Adjust filtering
* Remove outdated tests
* Remove success code for matching item
2024-12-17 07:39:49 +11:00
github-actions[bot]
88ab59359f
New Crowdin translations by GitHub Action ( #8654 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-16 09:50:27 +11:00
Matthias Mair
7bfd36f7cb
Refactor: Move settings definitions (and most validators) out of models.py ( #8646 )
...
* move out settings definitions
* fix import paths
* move validators into appropiate settings
* fix refactor error
* fix import paths
* move types out
* add validator tests
* add option to reload internal issues
* fix tests
2024-12-13 11:57:11 +11:00
Oliver
1adc42d422
Filter fix ( #8652 )
...
* Allow ordering by IPN
* Update table
2024-12-11 15:44:00 +11:00
github-actions[bot]
ad6bd635e6
New Crowdin translations by GitHub Action ( #8632 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-11 15:43:47 +11:00
Oliver
3554429baa
SalesOrder Data Migration ( #8585 )
...
* Add data migration to remedy bug
* Add migration tests
* Remove faulty migration test
* Tweak filter
* Update migration file
---------
Co-authored-by: Matthias Mair <code@mjmair.com>
2024-12-11 07:52:18 +11:00
Michael
5aae93e635
Added first example to plugin unit test ( #8636 )
...
* Start documentation chapter for plugin tests
* Added env variables to the doc
* Fix style errors
* Further style bugs
* Reformat environment variables
* Reformat environment variables
* Add comments from wolflu05
* Add text to the intro
* Added first example the plugin unit test
* Addred line it function
* Typo
* Typo
* Typo
2024-12-11 07:27:44 +11:00
Oliver
64dc5659bc
Add ITEM_RECEIVED event ( #8651 )
...
* Add ITEM_RECEIVED event
- Triggered when an item is recevied against a purchase order
* Adjust unit test
2024-12-11 07:21:35 +11:00
dependabot[bot]
987e0272f4
Bump django from 4.2.16 to 4.2.17 in /src/backend ( #8634 )
...
* Bump django from 4.2.16 to 4.2.17 in /src/backend
Bumps [django](https://github.com/django/django ) from 4.2.16 to 4.2.17.
- [Commits](https://github.com/django/django/compare/4.2.16...4.2.17 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix req
---------
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>
2024-12-09 07:37:13 +11:00
Oliver
9f120ef76f
Bug fix for stock transfer ( #8631 )
...
- Prevent duplication of tracking data
2024-12-06 14:41:28 +11:00
github-actions[bot]
4e36c7a2d7
New Crowdin translations by GitHub Action ( #8589 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-05 19:53:16 +11:00
Oliver
1a8b030819
[PUI] Supplier part badges ( #8625 )
...
* API fixes for SupplierPart
- Move API filtering into SupplierPartFilter class
- Correct field annotation for detail view
* Add "in stock" and "no stock" badges to SupplierPart detail
* Update details
* Annotate 'on_order' quantity for SupplierPart
* Add "has_stock" filter to SupplierPart API
* Improve API query efficiency
* Add 'has_stock' filter to table
* Update <SupplierPartDetail>
* Bump API version
2024-12-03 15:21:06 +11:00
dependabot[bot]
47b8f8fb32
Bump pyjwt from 2.10.0 to 2.10.1 in /src/backend ( #8619 )
...
* Bump pyjwt from 2.10.0 to 2.10.1 in /src/backend
Bumps [pyjwt](https://github.com/jpadilla/pyjwt ) from 2.10.0 to 2.10.1.
- [Release notes](https://github.com/jpadilla/pyjwt/releases )
- [Changelog](https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/jpadilla/pyjwt/compare/2.10.0...2.10.1 )
---
updated-dependencies:
- dependency-name: pyjwt
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix req
---------
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>
2024-12-03 14:04:39 +11:00
Matthias Mair
4f3e8cb0a0
[PUI] infinite loop if classic frontend is disabled ( #8614 )
...
Fixes #8575
2024-12-02 21:42:31 +11:00
Matthias Mair
f7697bd481
make logic simpler ( #8613 )
2024-12-02 10:49:28 +11:00
Michael
8ac852728e
Added a comment on database creation for local testing ( #8603 )
...
* New pic
* Marked external icon in picture
* Added a comment on database creation for unittest
* Update contributing.md
---------
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-12-02 09:47:49 +11:00
Oliver
3149ae79ce
Allow settings value to be nullified ( #8596 )
...
* Allow settings value to be nullified
* Additional null check
* Bump API version
* Fix for unit test
2024-11-30 15:30:28 +11:00
Oliver
20d862e350
Return Order - Improvements ( #8590 )
...
* Increase query limit
* Add "quantity" field to ReturnOrderLineItem model
* Add 'quantity' to serializer
* Optionally split stock when returning from customer
* Update the line item when splitting
* PUI updates
* Bump API version
* Add unit test
2024-11-29 17:06:35 +11:00
Oliver
dd9a6a8a2d
Event enum ( #8573 )
...
* Add enumeration for stock events
* Update function def
* Refactor build events
* Plugin events
* Update order events
* Overdue order events
* Add documentation
* Revert mkdocs.yml
* Stringify event name
* Enum cleanup
- Support python < 3.11
- Custom __str__
* Add unit tests
* Fix duplicated code
* Update unit tests
* Bump query limit
* Use proper enums in unit tests
2024-11-29 12:05:05 +11:00
github-actions[bot]
ced695b099
New Crowdin translations by GitHub Action ( #8536 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-11-29 10:45:13 +11:00
Oliver
db128f9322
Bug fix: record shipment date ( #8580 )
...
* Bug fix: record shipment date
- Ref: https://github.com/inventree/InvenTree/pull/6449
* Update unit test
2024-11-28 15:48:06 +11:00
Oliver
c074250ce6
Stock Transfer Improvements ( #8570 )
...
* Allow transfer of items independent of status marker
* Update test
* Display errors in stock transsfer form
* Add option to set status when transferring stock
* Fix inStock check for stock actions
* Allow adjustment of status when counting stock item
* Allow status adjustment for other actions:
- Remove stock
- Add stock
* Revert error behavior
* Enhanced unit test
* Unit test fix
* Bump API version
* Fix for playwright test
- Added helper func
* Extend playwright tests for stock actions
2024-11-28 07:06:58 +11:00
Oliver
28ea275d1a
Consumed filter ( #8574 )
...
* Add API filter for 'consumed' status
* Add filter to table
* Bump API vession
2024-11-28 00:59:14 +11:00
Oliver
a48d23b161
Set status when returning from customer ( #8571 )
...
* Set status when returning from customer
* Fix default customer for return order table
* Set status when receiving items against a ReturnOrder
* Bump max query time for currency endpoint
* Bump API version
2024-11-28 00:09:18 +11:00
Matthias Mair
af39189e7e
Add SelectionList concept ( #8054 )
...
* Add SelectionList model, APIs and simple tests
* Add managment entries
* Add field to serializer
* add more tests for parameters
* Add support for SelectionList to CUI
* Add selection option to PUI
* fix display
* add PUI admin entries
* remove get_api_url
* fix modeldict
* Add models for meta
* Add test for inactive lists
* Add locking and testing for locking
* ignore unneeded section
* Add PUI testing for adding parameter
* Add selectionList admin
* also allow creating entries
* extend tests
* force click
* and more testing
* adapt test?
* more assurance?
* make test more robust
* more retries but shorter runs
* Update playwright.config.ts
* Add docs
* Add note regarding administration
* Adapt to https://github.com/inventree/InvenTree/pull/8093
* make help text more descriptive
* fix migration
* remove unneeded UI entries
* add lables and describtions to TableFields
* factor out selectionList forms
* add key to button
* cleanup imports
* add editable fields
* Add function to add row
* fix render warning
* remove dead parameter
* fix migrations
* fix migrations
* fix format
* autofix
* fix migrations
* fix create / update loop
* fix addition of empty lists
* extend tests
* adjust changelog entry
* fix updating loop
* update test name
* merge migrations
* simplify request
* - Add entry count to list
- Move parameter table to default accordion
* fix test
* fix test clearing section
---------
Co-authored-by: Oliver Walters <oliver.henry.walters@gmail.com>
2024-11-27 13:30:39 +11:00
Oliver
20fb1250f8
Add new report filters for accessing database tables ( #8560 )
...
* Add new report filters for accessing database tables
* Simplify
* Handle exception
* Add docs
* Update docstrings
2024-11-27 07:51:27 +11:00
Oliver
368f3b7bd4
Remove regex dependency ( #8547 )
...
* Remove regex from requirements file
* Fix order of operations
- Remove hidden chars before removing HTML tags
* Remove requirement for regex package
* Additional unit tests
* Remove debug msg
* Fix for newline removal
* Fix variable shadowing
* Defer import of PIL.Image
2024-11-26 20:29:51 +11:00
Oliver
9d2ca5e617
Set null location on stock item: ( #8565 )
...
- When consumed by a build order
- When shipped to a customer
2024-11-26 20:29:37 +11:00
Oliver
7b1b476851
Handle pre-rendering when classic frontend is disabled ( #8563 )
2024-11-26 20:29:19 +11:00
Oliver
86c4a67bf3
Add location when creating multiple serials ( #8564 )
2024-11-26 20:29:07 +11:00
Matthias Mair
594dc49b84
Bump backend deps ( #8559 )
...
* bump backend deps
* bump api
2024-11-26 09:25:06 +11:00