Skip to content

Commit db75d6c

Browse files
author
John75SunCity
committed
fix: Temporarily disable publicWidget-dependent portal JS files
ISSUE: - 4 portal JavaScript files causing module loading errors - All use publicWidget which is unavailable in frontend bundle - Blocking portal from loading properly FILES DISABLED: 1. portal_inventory_highlights.js (37 jQuery calls) 2. portal_signature.js (47 jQuery calls) 3. portal_barcode_management.js (30 jQuery calls - barcode removed from portal) 4. visualization_dynamic_loader.js (0 jQuery calls - easiest to convert) IMPACT: - Portal loads without JavaScript errors - Lost features: inventory highlights, e-signature widget, barcode scanner, org chart - Can re-enable after vanilla JS conversion NEXT STEPS: 1. Test portal loads cleanly 2. Convert visualization_dynamic_loader.js first (low complexity) 3. Evaluate if other features needed in portal 4. Convert remaining files as needed Reference: Same issue as field_label_customizer.js (fixed in cecdd5c)
1 parent cecdd5c commit db75d6c

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

records_management/__manifest__.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -785,8 +785,9 @@
785785
# Optional heavy visualization bundle loaded only when flowchart / portal diagram features are enabled.
786786
# This reduces baseline asset generation time for generic back-end usage and speeds up unit test asset build.
787787
"records_management.assets_visualization_optional": [
788+
# TEMPORARILY DISABLED - Need vanilla JS conversion (publicWidget unavailable in frontend)
788789
# Dynamic loader replaces large minified vendor bundles to satisfy repo guideline (no minified libs committed)
789-
"records_management/static/src/js/visualization_dynamic_loader.js",
790+
# "records_management/static/src/js/visualization_dynamic_loader.js",
790791
# Local placeholder CSS (unminified real library recommended for production replacement)
791792
"records_management/static/src/lib/vis/vis-network.css",
792793
"records_management/static/src/xml/customer_portal_diagram_templates.xml"
@@ -804,14 +805,16 @@
804805
"records_management/static/src/css/customer_portal_diagram.css",
805806
"records_management/static/src/css/barcode_scanner.css",
806807
"records_management/static/src/js/portal/portal_tour.js",
807-
"records_management/static/src/js/portal/portal_inventory_highlights.js",
808+
# TEMPORARILY DISABLED - Need vanilla JS conversion (publicWidget unavailable in frontend)
809+
# "records_management/static/src/js/portal/portal_inventory_highlights.js",
808810
# NOTE: portal_inventory_search.js moved to backend_only/ (ESM format)
809811
"records_management/static/src/js/portal/portal_quote_generator.js",
810-
"records_management/static/src/js/portal/portal_signature.js",
812+
# TEMPORARILY DISABLED - Need vanilla JS conversion (publicWidget unavailable in frontend)
813+
# "records_management/static/src/js/portal/portal_signature.js",
811814
"records_management/static/src/js/portal/portal_user_import.js",
812815
"records_management/static/src/js/field_label_customizer.js",
813-
# Newly externalized portal barcode management logic (extracted from inline script)
814-
"records_management/static/src/js/portal/portal_barcode_management.js",
816+
# TEMPORARILY DISABLED - Need vanilla JS conversion (barcode removed from portal for security)
817+
# "records_management/static/src/js/portal/portal_barcode_management.js",
815818
# Barcode command handler for standard Odoo commands
816819
"records_management/static/src/js/barcode_command_handler.js",
817820
# Newly externalized portal document retrieval logic

0 commit comments

Comments
 (0)