Default filters (#749)

* Bug fix for filters

- Fix key shadowing

* Adjust default filters for stock list

* Adjust default filter values

* Add "active" filter for stock items

* Code formatting
This commit is contained in:
Oliver 2026-01-15 13:20:24 +11:00 committed by GitHub
parent 9002fb78d3
commit 74f468dc1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 24 additions and 9 deletions

View file

@ -75,8 +75,13 @@ class _PaginatedStockItemListState
"help_text": L10().filterInStockDetail,
"tristate": true,
},
"active": {
"default": true,
"label": L10().filterActive,
"help_text": L10().filterActiveDetail,
},
"cascade": {
"default": false,
"default": true,
"label": L10().includeSublocations,
"help_text": L10().includeSublocationsDetail,
"tristate": false,