Commit Graph

64 Commits

Author SHA1 Message Date
Abdurrahman Saber 4d0ad29e1c [FIX] web_hijri_datepicker: bug in list renderer 2025-10-12 10:03:24 +03:00
Mohamed Eltayar b6ab4599a4 Final Fix: Remove interference with default datepicker behavior - Use unique event namespaces 2025-09-17 12:35:39 +03:00
Mohamed Eltayar 8723a4c578 Fix ListRenderer _onWindowClicked to preserve default datepicker behavior - Final solution 2025-09-17 11:59:42 +03:00
Mohamed Eltayar ba6db34aea Fix both Gregorian and Hijri calendars not hiding on outside click - Final solution 2025-09-17 11:42:14 +03:00
Mohamed Eltayar 6154c2cc34
Fix: Hijri datepicker calendar not hiding on outside click (#4694)
* Fix hijri datepicker calendar not hiding on outside click

* Improve list renderer outside click handling for hijri calendar

* Update CSS z-index for better hijri calendar popup handling
2025-09-17 11:13:32 +03:00
Mohamed Eltayar 99e9e5db1f Add README.md documentation for the module 2025-08-29 02:58:46 +03:00
Mohamed Eltayar d4aa5714db Update manifest to version 2.0 with improved description and remove bootstrap flag 2025-08-29 02:58:10 +03:00
Mohamed Eltayar 3df203a602 Add list_renderer.js to assets to support hijri dates in list views 2025-08-29 02:57:53 +03:00
Mohamed Eltayar 37a44b67bd Update list_renderer.js to only show hijri dates for hijri_date and hijri_datetime widgets 2025-08-29 02:57:22 +03:00
Mohamed Eltayar 5cc072f2b8 Update web_hijri_date.xml to add new template for hijri widget 2025-08-29 02:56:15 +03:00
Mohamed Eltayar dfe293893c Update web_hijri_date.js to use custom widget instead of extending all date fields 2025-08-29 02:55:49 +03:00
Mohamed Eltayar 21434cbaeb إصلاح مشكلة عدم ظهور placeholder للتاريخ الميلادي - تطبيق placeholder بعد تهيئة datetimepicker 2025-08-29 02:24:53 +03:00
Mohamed Eltayar b3b542a290 إضافة placeholders ديناميكية للتاريخ الميلادي والهجري مع دعم اللغتين العربية والإنجليزية 2025-08-29 02:18:28 +03:00
Mohamed Eltayar a13cabfe27
Revert "enhance_hijri_date1" 2025-08-29 02:04:54 +03:00
Mohamed Eltayar 322be00a41
Revert "enhance_hijri_date2" 2025-08-29 02:04:06 +03:00
Mohamed Eltayar 43c78330d4
Revert "enhance_hijri_date3" 2025-08-29 02:02:51 +03:00
Mohamed Eltayar c32adf39ba
Revert "enhance_hijri_datepicker" 2025-08-29 02:01:44 +03:00
Mohamed Eltayar 04fda99931
Revert "🔧 Fix Hijri Datepicker Placeholder Display - إصلاح عرض placeholder في…"
This reverts commit b2ffbf3557.
2025-08-29 01:58:43 +03:00
Mohamed Eltayar 81b739376e
Revert "🎯 Simplify Hijri Datepicker - Remove Custom Styling" 2025-08-29 01:57:56 +03:00
Mohamed Eltayar b5ac09afd5
Revert "🔧 Add Minimal Placeholder Fix for Gregorian Date Field" 2025-08-29 01:57:19 +03:00
Mohamed Eltayar 0b1dee0abd
Revert "Fix: Hijri Datepicker Complete Solution" 2025-08-29 01:54:36 +03:00
Mohamed Eltayar 527b85e7f2 🔧 Fix: إصلاح مشاكل JavaScript في التقويم الهجري
- إصلاح خطأ __libInput undefined
- إضافة معالجة أخطاء شاملة
- إصلاح أزرار التنقل (السابق/التالي)
- تحسين التحقق من توفر المكتبات
- إضافة error handling في جميع الدوال الحرجة
2025-08-29 01:50:15 +03:00
Mohamed Eltayar 10cfe1b601 🔧 Fix: حل مشكلة مسارات المكتبات في __manifest__.py
- تصحيح مسار المكتبات من 2.2.0 إلى 2.0.2 (المجلد الموجود فعلياً)
- تحديث الإصدار إلى 2.2.1
- تحديث معلومات الشركة
2025-08-29 01:48:27 +03:00
Mohamed Eltayar ff44f7d312
Revert "🎨 Fix Hijri Calendar Styling Issues - إصلاح مشاكل تصميم التقويم الهجري" 2025-08-29 01:25:53 +03:00
Mohamed Eltayar 7a7fd30ef1
Revert "🔧 Fix jQuery Calendars Library Loading Error - إصلاح خطأ تحميل مكتبة …"
This reverts commit c4d0ad051f.
2025-08-29 01:25:08 +03:00
Mohamed Eltayar c4d0ad051f
🔧 Fix jQuery Calendars Library Loading Error - إصلاح خطأ تحميل مكتبة التقويم
🔧 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
2025-08-29 01:17:56 +03:00
Mohamed Eltayar ca78074f03 Fix Hijri Calendar Navigation and Rendering Issues
- Fix navigation buttons in renderer to show proper arrow symbols (‹ ›)
- Add onShow callback to ensure buttons display correctly after calendar loads
- Add proper Arabic titles for navigation buttons
- Ensure navigation buttons are clickable and functional
- Keep minimal code changes focused only on navigation fixes
2025-08-29 01:08:43 +03:00
Mohamed Eltayar 2e0cb7bc14 Fix 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
2025-08-29 01:07:42 +03:00
Mohamed Eltayar 8ccc175b24 Add minimal placeholder handling for Gregorian date field
- 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
2025-08-29 01:00:10 +03:00
Mohamed Eltayar 6d7b57b291 Simplify JavaScript - remove complex placeholder handling
- 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
2025-08-29 00:53:51 +03:00
Mohamed Eltayar 0634076837 Remove custom placeholder styling - keep only Odoo standard styles
- 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
2025-08-29 00:52:55 +03:00
Mohamed Eltayar b2ffbf3557
🔧 Fix Hijri Datepicker Placeholder Display - إصلاح عرض placeholder في التاريخ الهجري
🔧 Fix Hijri Datepicker Placeholder Display

- Fix XML template placeholder attributes for proper QWeb rendering
- Add comprehensive JavaScript placeholder handling methods  
- Enhance CSS styling for better placeholder visibility
- Add DOM mutation observer for dynamic content
- Ensure placeholder works in all Odoo contexts (forms, lists, mobile)
- Add cross-browser compatibility for placeholder styling

 Both Gregorian and Hijri placeholders now display correctly
2025-08-29 00:40:37 +03:00
Mohamed Eltayar 0d5b18e5ae
Revert "hijri_date_enhance" 2025-08-28 17:54:09 +03:00
Mohamed Eltayar 911777a403
Revert "Fixed QWeb template inheritance error - removed non-existent template…" 2025-08-28 17:53:25 +03:00
Mohamed Eltayar 477563b3eb Fixed QWeb template inheritance error - removed non-existent template references for Odoo 14 2025-08-28 17:45:59 +03:00
Mohamed Eltayar 69e7db306b
hijri_date_enhance 2025-08-28 17:40:07 +03:00
Mohamed Eltayar 87c9948d18 Enhanced SCSS with comprehensive placeholder styling and visual improvements 2025-08-28 16:54:51 +03:00
Mohamed Eltayar 966609559c Enhanced JavaScript with proper placeholder handling for both Gregorian and Hijri fields 2025-08-28 16:53:46 +03:00
Mohamed Eltayar 2812cde5cc Fixed placeholder display for Gregorian date field and improved Arabic labels 2025-08-28 16:51:48 +03:00
Mohamed Eltayar edc56219d3 Comprehensive README with all enhancement details and Odoo 14 integration info 2025-08-28 16:49:47 +03:00
Mohamed Eltayar cb2c09e437 Enhanced manifest with comprehensive Odoo 14 integration details 2025-08-28 16:48:54 +03:00
Mohamed Eltayar fce5d88e2a Enhanced assets template with optimized loading and QWeb templates 2025-08-28 16:48:14 +03:00
Mohamed Eltayar bf1776e219 Enhanced XML templates with better Odoo 14 integration and accessibility 2025-08-28 16:46:36 +03:00
Mohamed Eltayar aaa8c7da30 Enhanced JavaScript integration with Odoo 14 datepicker patterns 2025-08-28 16:46:07 +03:00
Mohamed Eltayar 1f759b0aa0 Enhanced SCSS integration with Odoo 14 variables and components 2025-08-28 16:44:44 +03:00
Mohamed Eltayar 9661e5caa8 Update Hijri datepicker CSS to match Odoo 14 standard datepicker styling 2025-08-28 16:43:50 +03:00
Mohamed Eltayar 45dde91bac Update manifest with enhanced v2.2.0 features, modern assets structure and comprehensive description 2025-08-28 16:06:02 +03:00
Mohamed Eltayar db7e820da7 Add comprehensive README documenting all improvements and new features 2025-08-28 16:05:38 +03:00
Mohamed Eltayar c3bf990c8a Enhanced JavaScript with modern features, better UX, error handling and performance improvements 2025-08-28 16:04:58 +03:00
Mohamed Eltayar 291549ab11 Create modern CSS for Hijri datepicker with Odoo-compatible styling 2025-08-28 16:03:52 +03:00