InvenTree/InvenTree
Oliver 7fe8207463
Forms initial data (#6365)
* Use PATCH for edit form

* Add "localhost:8000" server option

* Add initialData property for forms

- Allows user to specify an initial dataset to override default values

* Override field values when constructing form props

* Remove debug messages

* Wrap ApiForm in FormProvider

- Allows lower elements to access all form data without rebuild
- Pass all form data through to adjustFilters routine

* Fixes for RelatedModelField

- Ensure that the saved data are cleared when filters change

* Fix debug message for token creation

* Fix address rendering for modals

* Refactor "address" forms

- Use new "hook" form structure

* Update Contacts table

* Prevent related model fields from fetching on initial form open

- Only fetch when the drop-down is actually opened
- Significantly reduces the number of API calls

* Fix for ChoiceField

- Display label / description / placeholder text

* Fix for DateInput

- Correct conversion of datatype

* Implement "new purchase order" form

- Uses modal form hook
- Supply initial data
- Adjust filters according to selected company

* Add new company from company table

* Edit company from detail page

* More table updates

- StockLocation
- PartCategory

* Update more tables / forms:

- PartParameter table
- PartParameterTemplate table
- Cleanup unused imports

* Update ProjectCode table

* CustomUnits table

* Update RelatedPart table

* Update PartTestTemplate table

* Cleanup PartParameterTable

* Add "IPN" column to PartParameterTable

* Update BuildOrder table

* Update BuildDetail page

* PurchaseOrderLineItem table

* Simplify

- Move fields which are only used in one location

* Create new salesorder with context

- Also consolidate translated strings
- Also improve consistency of inline rendering (with missing image)

* Revert change to RenderInlineModel

* Fix for build table

- Use apiUrl wrapper around ApiEndpoint

* Fix parameter for PurchaseOrderTable

* Adjust server selector

- Only show localhost:8000 if in dev mode

* Tweak URL

* Add extra test to playground

- Check initial value works for nested field

* Cleanup playground

* Cleanup unused vars

* memoize fields

* Fix typo

host -> host

* Fix part editing

* Cleanup unused

* update group table
2024-02-01 00:38:59 +11:00
..
InvenTree [PUI] Details Panel components (#6040) 2024-01-31 10:37:42 +11:00
build Build order improvements (#6343) 2024-01-29 10:56:34 +11:00
common Reimplement error-report API endpoint (#6317) 2024-01-22 12:03:58 +00:00
company [PUI] Details Panel components (#6040) 2024-01-31 10:37:42 +11:00
generic [CI] docstrings (#6172) 2024-01-11 14:40:07 +11:00
label Move more paths to basic path (#6251) 2024-01-18 17:05:10 +11:00
locale Add support for Slovak (#6351) 2024-01-29 10:56:58 +11:00
order Build order improvements (#6343) 2024-01-29 10:56:34 +11:00
part [PUI] Details Panel components (#6040) 2024-01-31 10:37:42 +11:00
plugin Add check for KeyError on reading plugin commit (#6300) 2024-01-22 06:56:08 +11:00
plugins CI updates (#6167) 2024-01-11 00:16:13 +11:00
report Disable cache for report helpers (#6370) 2024-01-31 15:52:01 +11:00
script [CI] Enable python autoformat (#6169) 2024-01-11 11:28:58 +11:00
stock [PUI] Child item table (#6334) 2024-01-24 12:33:34 +00:00
templates Build order improvements (#6343) 2024-01-29 10:56:34 +11:00
users Forms initial data (#6365) 2024-02-01 00:38:59 +11:00
web [PUI] Fix logout (#6284) 2024-01-19 11:30:19 +11:00
config_template.yaml [FR] Add tracing support (#6211) 2024-01-18 17:50:05 +11:00
gunicorn.conf.py [CI] docstrings (#6172) 2024-01-11 14:40:07 +11:00
manage.py [FR] Add tracing support (#6211) 2024-01-18 17:50:05 +11:00