2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 20:15:44 +00:00

[UI] Settings render (#9148)

* Update sample plugin

* Inline rendering of model based settings

* Spelling fix

* Add playwright testing
This commit is contained in:
Oliver
2025-02-22 21:59:06 +11:00
committed by GitHub
parent 2cabd02c6b
commit 8df34cefd6
6 changed files with 118 additions and 8 deletions

View File

@ -72,14 +72,16 @@ class SampleIntegrationPlugin(
'default': 'A',
},
'SELECT_COMPANY': {
'name': 'Company',
'description': 'Select a company object from the database',
'name': 'Supplier',
'description': 'Select a supplier object from the database',
'model': 'company.company',
'model_filters': {'is_supplier': True},
},
'SELECT_PART': {
'name': 'Part',
'description': 'Select a part object from the database',
'model': 'part.part',
'model_filters': {'active': True},
},
'PROTECTED_SETTING': {
'name': 'Protected Setting',