Mirrored from GitHub via DevOps Hub
Go to file
Mohamed Eltayar d5b40acead 🔧 FINAL FIX: Using trigger_up('reload') - The CORRECT Odoo way to filter records
💡 ROOT CAUSE DISCOVERED:
After deep research, the real issue was trying to trigger search from ListRenderer. The correct Odoo approach is:
- ListRenderer is for DISPLAY only, not data updates
- The proper way is trigger_up('reload') with domain parameter
- This is exactly how Odoo's own search functionality works internally

 CORRECTED IMPLEMENTATION:
- Changed from trigger_up('search') to trigger_up('reload')  
- Added proper domain parameter passing
- Added keepSelection: false for proper filtering behavior
- Maintained all other enhancements (count, Arabic support, etc.)

🎯 HOW IT WORKS (Standard Odoo Pattern):
1. ListRenderer triggers 'reload' event with new domain
2. Controller receives reload event and updates state.domain
3. Controller calls reload() which refetches data with new domain
4. View re-renders with filtered records

🚀 EXPECTED RESULT:
- Search count continues to work (RPC call)
- Records will now be properly filtered using Odoo's standard reload mechanism
- Clear function restores all records using original domain
- Perfect integration with Odoo's data loading system

This follows the exact same pattern used by Odoo's native search and filter functionality.
2025-08-30 14:06:33 +03:00
.github/workflows Update github action file 2025-08-20 12:15:20 +03:00
odex25_base 🔧 FINAL FIX: Using trigger_up('reload') - The CORRECT Odoo way to filter records 2025-08-30 14:06:33 +03:00
README.md Add odex25_base 2024-06-24 13:55:54 +03:00

README.md

odex25-standard-modules

This Repo contains general standard modules for all projects.