* add security commitment
* fix badge path
* set token permissions
see https://github.com/inventree/InvenTree/security/code-scanning/48
* add more chapters
* break up flow text
* spellchecking
* clean diff
* bump setup-python to node 20 version
* fix docker version too
* remove unuses api method
* update API docstrings to be more acurate
* updated typing for fields
* upate serializer to avoid collision
* fix typing for API generation
* fix ModelChoiceFilter inference
* fix typing for manufacturer
* bump API version
* fix test
* fix type checker warnings
* fix api path
* updated translation base
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix: New translations messages.po from Crowdin
* Fix: New translations django.po from Crowdin
* Fix ru translations
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* [BUG] Inventree fiddles with files directly rather than using Django Storage api
Fixes#2585
* PEP fix
* clean diff
* move template discovery into central location
* more moving file operations
* fix paths
* and another path fixing
* more fixes
* fix typing
* switch config back to local
* revert locale stats
* remove dependency for template copy step
* fix typing
* log more
* log data
* more logging
* pass filenames as strings
* clean diff
* set yarn version
* bump yarn to 4.1
* update dependency file
* upgrade all deps as far as possible
* cleanup diff
* bump node
* ignore lock in pre-commit
* fix lockfile
* bump yarn version
* switch back to yarn 1 for now
* only run if in an inventree org repo
* only sign into docker hub if username set
* use repo name for ghcr name
* renmae to not cause confusion
* rename vars
* use seperate step
* disable a bunch of stuff for testing
* use echo instead
* Revert "disable a bunch of stuff for testing"
This reverts commit 0ab5ff6d6d.
* Validate default value field for PartCategoryParameterTemplate
- Only if unit checks are enforced
- Only if default value is not blank
* Add basic table for part category parameter templates
* Add functions to create / edit / delete via table
* Fix unit testing
* Impove link rendering in attachment table
* Add "updateRecord" hook for useTable
* Refactoring
Make use of new table.updateRecord method
* Refactor model row clicks
- Just need to provide a model type
* Fix BuildLineTable
* Re-add required imports
* Remove hard-coded paths
* Quick attempt at fixed form footer
* slightly improve on lower res devices
* Squashed commit of the following:
commit 06c7ebfc21
Author: Oliver <oliver.henry.walters@gmail.com>
Date: Sat Mar 16 09:11:57 2024 +1100
Update docker_install.md (#6723)
* Update docker_install.md
Add note about external access
* Update docker_install.md
commit a00d5ab4b5
Author: Oliver <oliver.henry.walters@gmail.com>
Date: Fri Mar 15 17:53:58 2024 +1100
Disable BOM requirement (#6719)
* Add new setting STOCK_ENFORCE_BOM_INSTALLATION
- Defaults to True (legacy)
* Add logic to bypass BOM check
* Update CUI to reflect new logic
* Render InstalledItemsTable in PUI
commit 160d014e44
Author: Oliver <oliver.henry.walters@gmail.com>
Date: Fri Mar 15 17:12:53 2024 +1100
[PUI] Details Pages (#6718)
* Add "details" view to SupplierPart page
* Fix PartActions
* Add placeholder for actions
* Add "title" option to DetailsTable
* Add edit form to supplier part page
* Fix link to manufacturer part
* Add "details" view to ManufacturerPartDetail page
* Add edit for ManufacturerPart
* Create new manufacturer part from company table
* Tweak ActionIcon
commit 57a1a81e9b
Author: Oliver <oliver.henry.walters@gmail.com>
Date: Fri Mar 15 12:24:17 2024 +1100
Reporting: Build line label fix (#6717)
* Fix "BuildLine" label in PUI
- Point to "buildline" not "build"
* Prevent escape closing template ediror
* Update report docs
* Fix for format_number
- Prevent number from being represented as scientific notation
commit 0196dd2f60
Author: Lavissa <lavissawow@gmail.com>
Date: Fri Mar 15 02:06:18 2024 +0100
[PUI/Feature] Integrate Part "Default Location" into UX (#5972)
* Add default parts to location page
* Fix name strings
* Add Stock Transfer modal
* Add ApiForm Table field
* temp
* Add stock transfer form to part, stock item and location
* All stock operations for Item, Part, and Location added (except order new)
* Add default_location category traversal, and initial PO Line Item Receive form
* .
* Remove debug values
* Added PO line receive form
* Add functionality to PO receive extra fields
* .
* Forgot to bump API version
* Add Category Default to details panel
* Fix stockItem query count
* Fix reviewed issues
* .
* .
* .
* Prevent root category from checking parent for default location
commit 6abd33f060
Author: Oliver <oliver.henry.walters@gmail.com>
Date: Fri Mar 15 00:24:48 2024 +1100
Report enhancements (#6714)
* Add "enabled" filter to template table
* Cleanup
* API endpoints
- Add API endpoints for report snippet
- List endpoint
- Details endpoint
* Update serializers
- Add asset serializer
- Update
* Check for duplicate asset files
- Prevent upload of duplicate asset files
- Allow re-upload for same PK
* Duplicate checks for ReportSnippet
* Bump API version
commit cbd94fc4b5
Author: Oliver <oliver.henry.walters@gmail.com>
Date: Thu Mar 14 23:06:11 2024 +1100
Fix for caddyfile (#6712)
- Add "authorization" to Access-Control-Allow-Headers
- CORS requests actually *work* now
commit ec5ff6408d
Author: Lukas <76838159+wolflu05@users.noreply.github.com>
Date: Thu Mar 14 13:03:30 2024 +0100
handle report previewing errors (#6709)
commit 267ff67f05
Author: Oliver <oliver.henry.walters@gmail.com>
Date: Thu Mar 14 15:11:27 2024 +1100
[PUI] Updates (#6707)
* Add button to edit part category
* Fix useMemo()
* Edit stock location
commit 610ea7b0b1
Author: Oliver <oliver.henry.walters@gmail.com>
Date: Thu Mar 14 12:09:14 2024 +1100
Report: Add date rendering (#6706)
* Validate timezone in settings.py
* Add helper functions for timezone information
- Extract server timezone
- Convert provided time to specified timezone
* Add more unit tests
* Remove debug print
* Test fix
* Add report helper tags
- format_date
- format_datetime
- Update report templates
- Unit tests
* Add setting to control report errors
- Only log errors to DB if setting is enabled
* Update example report
* Fixes for to_local_time
* Update type hinting
* Fix unit test typo
commit 7de87383b5
Author: Oliver <oliver.henry.walters@gmail.com>
Date: Wed Mar 13 21:37:56 2024 +1100
Update .env (#6700)
Fix comment - no need to change Caddyfile in most cases
commit 2fef34852c
Author: Oliver <oliver.henry.walters@gmail.com>
Date: Wed Mar 13 20:37:05 2024 +1100
Unit tests for HOST settings (#6698)
- CORS
- ALLOWED_HOSTS
* Make ApiForms shrinkable, spoiler long group list
* Improve API Form Scroll Behavior
* Fix incorrect modal component
* Force load all modal fields to trigger loading animation
* Show loading overlay while fetching fields
* table updates
- Store page data in tablestate
- Store record count data in table state
* Expose "records" to table state
* edit or add parameters from ParametricPartTable
- Click on parameter cells to edit / add
* Mark fields as disabled
* Update table
- Display edit icon on hover
* Fix callback