From 322be00a41a0e97fd5b2ecfb4b1cafd7ecc44aa5 Mon Sep 17 00:00:00 2001 From: Mohamed Eltayar <152964073+maltayyar2@users.noreply.github.com> Date: Fri, 29 Aug 2025 02:04:06 +0300 Subject: [PATCH] Revert "enhance_hijri_date2" --- .../static/src/js/web_hijri_date.js | 47 +++--- .../static/src/scss/web_hijri_date.scss | 135 +++++------------- .../static/src/xml/web_hijri_date.xml | 45 +++--- 3 files changed, 84 insertions(+), 143 deletions(-) diff --git a/odex25_base/web_hijri_datepicker/static/src/js/web_hijri_date.js b/odex25_base/web_hijri_datepicker/static/src/js/web_hijri_date.js index 6b1b1f6db..c66866a67 100644 --- a/odex25_base/web_hijri_datepicker/static/src/js/web_hijri_date.js +++ b/odex25_base/web_hijri_datepicker/static/src/js/web_hijri_date.js @@ -126,32 +126,33 @@ odoo.define('web_hijri_datepicker.datepicker', function (require) { var parsed_date = this.value ? this.datewidget._parseDate(this.value) : ''; var hijri_value = parsed_date ? this.datewidget._convertGregorianToHijri(parsed_date) : ''; - // Original Gregorian date (unchanged) + // Gregorian Date Section $('
', { - class: this.$el.attr('class'), - text: value, - }).appendTo($div); - - // Hijri date with label layout - var $hijriContainer = $('
', { - class: 'o_hijri_readonly_container' - }); - - var $hijriRow = $('
', { - class: 'o_hijri_readonly_row' - }).appendTo($hijriContainer); + class: 'o_date_section' + }).append([ + $('