دمج تحديث موديول Web Hijri Datepicker v2.0
التحديثات الرئيسية:
- جعل التاريخ الهجري اختياري بدلاً من تلقائي
- إضافة widgets مخصصة: hijri_date و hijri_datetime
- عدم التأثير على الحقول الموجودة
- توثيق كامل وأمثلة استخدام
- إصلاح خطأ __libInput undefined
- إضافة معالجة أخطاء شاملة
- إصلاح أزرار التنقل (السابق/التالي)
- تحسين التحقق من توفر المكتبات
- إضافة error handling في جميع الدوال الحرجة
🔧 Fix jQuery Calendars Library Loading Error
- Fix library loading order in manifest with proper prepend directives
- Add safety checks for $.calendars availability before usage
- Add try-catch blocks for error handling during initialization
- Separate Hijri calendar initialization into its own method
- Remove duplicate jquery.plugin.js file that was causing conflicts
- Add fallback behavior when library fails to load (hide Hijri field)
- Add console warnings for debugging library loading issues
- Ensure Gregorian datepicker works even if Hijri library fails
- Proper loading sequence: CSS → Libraries → Custom JS
✅ Complete fix for jQuery Calendars loading error
🎨 Fix Hijri Calendar Styling Issues
- Fix navigation buttons to show proper arrow symbols (‹ ›) and make them clickable
- Fix week header background - now solid and clearly visible
- Fix month/year dropdown selectors with proper styling and focus states
- Add comprehensive CSS improvements for better calendar appearance
- Add proper hover effects, selection states, and responsive design
- Ensure full compatibility with Odoo UI while maintaining modern look
- Add Arabic tooltips and RTL support for better user experience
✅ Complete fix for all Hijri calendar styling issues
- Fix navigation buttons (prev/next) - now show as proper arrows and clickable
- Fix week header background - solid background instead of transparent
- Fix month/year dropdown selectors with proper styling
- Add proper hover and focus states for all interactive elements
- Improve overall calendar appearance and usability
- Ensure proper integration with Odoo without affecting other components
- Add responsive design for mobile devices
- Add simple check and set placeholder for Gregorian input field
- Add setTimeout fallback to ensure placeholder after datetimepicker load
- Keep code minimal and focused only on placeholder functionality
- No complex DOM observers or event handlers
- Uses standard Odoo styling without modifications
- Remove _ensurePlaceholders() method and related complexity
- Remove DOM MutationObserver and event handlers
- Remove setTimeout and async handling
- Keep only the core functionality for date conversion
- Remove all custom placeholder manipulation code
- Use simple, standard Odoo approach for placeholders
- Focus on core Hijri calendar functionality only
- Remove all custom placeholder CSS modifications
- Remove custom input field styling
- Remove custom colors, borders, and visual enhancements
- Keep only the original functionality-related CSS
- Use Odoo's default styling for all input fields
- Focus purely on placeholder functionality without visual changes