Skip to content

Commit c107cba

Browse files
author
John75SunCity
committed
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 feature
1 parent ab5b60e commit c107cba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

records_management/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Records Management - Enterprise Edition",
3-
'version': '18.0.1.0.23',
3+
'version': '18.0.1.0.24',
44
'category': 'Productivity/Records',
55
"summary": "Complete Enterprise Records Management System with NAID AAA Compliance",
66
"description": "Records Management - Enterprise Grade DMS Module. Enterprise physical & digital records lifecycle, NAID AAA + ISO 15489 compliance, portal, shredding, retention, audit, billing.",

records_management/controllers/advanced_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def advanced_inventory_search(self, page=1, **filters):
135135
'can_export': True,
136136
}
137137

138-
return request.render("records_management.advanced_search_results", values)
138+
return request.render("records_management.portal_advanced_inventory_search", values)
139139

140140
def _build_advanced_search_domain(self, partner, filters):
141141
"""

0 commit comments

Comments
 (0)