Commit c107cba
John75SunCity
fix(controller): Advanced search template ID mismatch causing 500 error
ISSUE:
- Accessing /my/inventory/advanced_search caused 500 Internal Server Error
- Error: ValueError: View 'records_management.advanced_search_results' in website 1 not found
- Controller was trying to render non-existent template
ROOT CAUSE:
- Controller: request.render('records_management.advanced_search_results', values)
- Actual template ID: 'records_management.portal_advanced_inventory_search'
- Template exists but with different ID
FIX:
✅ Updated advanced_search.py line 138
✅ Changed template reference to correct ID
✅ Template now renders properly
TECHNICAL DETAILS:
File: controllers/advanced_search.py
Method: advanced_inventory_search()
Change: 'advanced_search_results' → 'portal_advanced_inventory_search'
Template location: templates/advanced_search_templates.xml
This was NOT related to:
- Website configuration
- The JavaScript widget fixes (v18.0.1.0.22-23)
- vis-network library loading
- Simple template ID mismatch in controller
TESTING:
- Visit: /my/inventory/advanced_search
- Should show: Advanced Inventory Search page with form
- No 500 error
- Can search containers, files, documents
Version: 18.0.1.0.23 → 18.0.1.0.24
Files: advanced_search.py, __manifest__.py
Impact: Fixes broken advanced search feature1 parent ab5b60e commit c107cba
File tree
2 files changed
+2
-2
lines changed- records_management
- controllers
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
0 commit comments