From 78fe485f623d89d2eb1cadaecd49e87d1d2b6d6e Mon Sep 17 00:00:00 2001 From: Mohamed Eltayar <152964073+maltayyar2@users.noreply.github.com> Date: Mon, 1 Sep 2025 00:22:31 +0300 Subject: [PATCH 1/4] =?UTF-8?q?=D8=AA=D8=AD=D8=B3=D9=8A=D9=86=20=D9=85?= =?UTF-8?q?=D9=88=D8=AF=D9=8A=D9=88=D9=84=20am=5Fsar=5Fsymbol:=20=D8=A5?= =?UTF-8?q?=D8=B2=D8=A7=D9=84=D8=A9=20=D8=AE=D8=B7=20Tajawal=20=D9=88?= =?UTF-8?q?=D8=A7=D9=84=D8=A7=D8=AD=D8=AA=D9=81=D8=A7=D8=B8=20=D8=A8=D8=B1?= =?UTF-8?q?=D9=85=D8=B2=20=D8=A7=D9=84=D8=B1=D9=8A=D8=A7=D9=84=20=D9=81?= =?UTF-8?q?=D9=82=D8=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../am_sar_symbol/static/src/css/style.css | 41 ++++++++----------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/odex25_base/am_sar_symbol/static/src/css/style.css b/odex25_base/am_sar_symbol/static/src/css/style.css index 5bf755d72..48619492a 100644 --- a/odex25_base/am_sar_symbol/static/src/css/style.css +++ b/odex25_base/am_sar_symbol/static/src/css/style.css @@ -1,15 +1,4 @@ -@font-face { - font-family: 'Tajawal-Regular'; - src: url('../fonts/Tajawal-Regular.eot'); - src: url('../fonts/Tajawal-Regular.eot?#iefix') format('embedded-opentype'), - url('../fonts/Tajawal-Regular.woff2') format('woff2'), - url('../fonts/Tajawal-Regular.woff') format('woff'), - url('../fonts/Tajawal-Regular.ttf') format('truetype'); - font-weight: normal; - font-style: normal; - font-display: swap; -} - +/* ===== خط رمز الريال السعودي الجديد فقط ===== */ @font-face { font-family: 'sar-symbol'; src: url('../fonts/sar-symbol.eot?ebwrxj'); @@ -22,10 +11,9 @@ font-display: block; } +/* تنسيق أيقونات الريال */ [class^="icon-sar"], [class*=" icon-sar"] { - /* use !important to prevent issues with browser extensions that change fonts */ font-family: 'sar-symbol' !important; - /* Don't use speak property as it causes lint warnings */ -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; font-style: normal; @@ -33,8 +21,6 @@ font-variant: normal; text-transform: none; line-height: 1; - - /* Better Font Rendering =========== */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } @@ -43,17 +29,25 @@ content: "\e900"; } -/* General font settings */ -*:not(.fa):not(.oi) { - font-family: 'Tajawal-Regular', 'sar-symbol', sans-serif !important; +/* ===== دعم رمز الريال في الحقول النقدية ===== */ +.oe_currency_value, +.o_account_report_column_value, +.o_account_report_summary_value, +[data-currency="SAR"], +.o_monetary_field, +.o_field_monetary, +.o_field_monetary input, +.currency_field, +span[t-field-options*="currency"] { + font-family: inherit, 'sar-symbol' !important; } -/* Report specific elements */ +/* تقارير PDF */ .page, .header, .footer { - font-family: 'Tajawal-Regular', 'sar-symbol', sans-serif !important; + font-family: inherit, 'sar-symbol' !important; } -/* Special class for SAR amount fields */ +/* رمز العملة في الحقول */ .oe_currency_value::before, .o_account_report_column_value::before, .o_account_report_summary_value::before, @@ -66,9 +60,10 @@ width: 0; } +/* إخفاء في بعض التقارير حسب الحاجة */ body .o_content .o_account_reports_body .oe_currency_value::before, body .o_content .o_account_reports_body .o_account_report_column_value::before, body .o_content .o_account_reports_body .o_account_report_summary_value::before, body .o_content .o_account_reports_body .o_account_report_line [data-parent-id] .o_account_report_column_value::before { display: none; -} +} \ No newline at end of file From 06924706ad85fa599950af4fa35ca41bdbb3a8f7 Mon Sep 17 00:00:00 2001 From: Mohamed Eltayar <152964073+maltayyar2@users.noreply.github.com> Date: Mon, 1 Sep 2025 00:22:47 +0300 Subject: [PATCH 2/4] =?UTF-8?q?=D8=A5=D8=B6=D8=A7=D9=81=D8=A9=20=D8=A7?= =?UTF-8?q?=D9=84=D8=A8=D9=8A=D8=A7=D9=86=D8=A7=D8=AA=20=D8=A7=D9=84=D8=AA?= =?UTF-8?q?=D9=84=D9=82=D8=A7=D8=A6=D9=8A=D8=A9=20=D9=84=D8=AA=D8=AD=D8=AF?= =?UTF-8?q?=D9=8A=D8=AB=20=D8=B1=D9=85=D8=B2=20=D8=A7=D9=84=D8=B1=D9=8A?= =?UTF-8?q?=D8=A7=D9=84=20=D8=A7=D9=84=D8=B3=D8=B9=D9=88=D8=AF=D9=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../am_sar_symbol/data/res_currency_data.xml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 odex25_base/am_sar_symbol/data/res_currency_data.xml diff --git a/odex25_base/am_sar_symbol/data/res_currency_data.xml b/odex25_base/am_sar_symbol/data/res_currency_data.xml new file mode 100644 index 000000000..fe6ee466d --- /dev/null +++ b/odex25_base/am_sar_symbol/data/res_currency_data.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + before + + + + + + + + + + \ No newline at end of file From a356c664e26f0cfc3393f0444a8faa467452b68f Mon Sep 17 00:00:00 2001 From: Mohamed Eltayar <152964073+maltayyar2@users.noreply.github.com> Date: Mon, 1 Sep 2025 00:23:06 +0300 Subject: [PATCH 3/4] =?UTF-8?q?=D8=AA=D8=AD=D8=AF=D9=8A=D8=AB=20Manifest:?= =?UTF-8?q?=20=D8=A5=D8=B6=D8=A7=D9=81=D8=A9=20=D8=A7=D9=84=D8=AA=D8=AD?= =?UTF-8?q?=D8=AF=D9=8A=D8=AB=20=D8=A7=D9=84=D8=AA=D9=84=D9=82=D8=A7=D8=A6?= =?UTF-8?q?=D9=8A=20=D9=88=D9=88=D8=B5=D9=81=20=D9=85=D8=AD=D8=B3=D9=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- odex25_base/am_sar_symbol/__manifest__.py | 34 ++++++++++++++++------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/odex25_base/am_sar_symbol/__manifest__.py b/odex25_base/am_sar_symbol/__manifest__.py index f39333e0d..cebbdb56f 100644 --- a/odex25_base/am_sar_symbol/__manifest__.py +++ b/odex25_base/am_sar_symbol/__manifest__.py @@ -1,34 +1,48 @@ { 'name': 'SAR Symbol Font | Saudi Currency Symbol | Riyal Saudi Icon', - 'version': '14.0.2.0.0', + 'version': '14.0.2.1.0', 'category': 'Accounting', - 'summary': 'Add the new Saudi Riyal (SAR) symbol to your Odoo system', + 'summary': 'Add the new Saudi Riyal (SAR) symbol to your Odoo system with automatic setup', 'description': """ SAR Symbol Font for Odoo رمز الريال السعودي اودو Odoo ======================= -This module adds the new Saudi Riyal () symbol to your Odoo system interfaces, including: +This module adds the new Saudi Riyal (ر.س) symbol to your Odoo system interfaces, including: * PDF Reports * Point of Sale Interface * Invoices * All system views +* Automatic currency symbol update -After installing this module, copy the symbol () and paste it in the currency symbol field -for the Saudi Riyal (SAR) currency in: Accounting > Configuration > Accounting > Currencies. +Features: +========= +✓ Automatic installation - no manual setup required +✓ Compatible with custom themes (uses inherit fonts) +✓ Clean implementation without font conflicts +✓ Supports both Arabic and English interfaces -Note: Please ensure there are no other font-family customizations in your system views and invoices -that might conflict with this module. +Installation: +============= +Simply install the module and the Saudi Riyal symbol will be automatically +applied to your currency settings. + +Technical Notes: +================ +- Uses dedicated sar-symbol font for the new Saudi Riyal symbol +- Compatible with custom backend themes +- Optimized for performance and minimal conflicts """, - 'author': 'bst-inn, Amro00743', + 'author': 'bst-inn, Amro00743, Expert SA', "support": "amro00743@gmail.com", 'website': 'https://www.linkedin.com/in/amro00743/', 'license': 'LGPL-3', 'price': 0.0, 'currency': 'USD', - 'depends': ['base','web'], + 'depends': ['base', 'web'], 'data': [ + 'data/res_currency_data.xml', 'views/assets.xml', ], 'images': ['static/description/banner.png'], @@ -36,4 +50,4 @@ that might conflict with this module. 'auto_install': False, 'application': False, 'license': 'LGPL-3', -} +} \ No newline at end of file From 1047d4ee0370c107d5a7dd67a6b5a4024386669c Mon Sep 17 00:00:00 2001 From: Mohamed Eltayar <152964073+maltayyar2@users.noreply.github.com> Date: Mon, 1 Sep 2025 00:23:29 +0300 Subject: [PATCH 4/4] =?UTF-8?q?=D8=AA=D8=AD=D8=AF=D9=8A=D8=AB=20README=20?= =?UTF-8?q?=D8=A8=D8=A7=D9=84=D9=85=D9=85=D9=8A=D8=B2=D8=A7=D8=AA=20=D8=A7?= =?UTF-8?q?=D9=84=D8=AC=D8=AF=D9=8A=D8=AF=D8=A9=20=D9=84=D9=84=D9=85=D9=88?= =?UTF-8?q?=D8=AF=D9=8A=D9=88=D9=84=20=D8=A7=D9=84=D9=85=D8=AD=D8=B3=D9=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- odex25_base/am_sar_symbol/readme.txt | 45 ++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/odex25_base/am_sar_symbol/readme.txt b/odex25_base/am_sar_symbol/readme.txt index 80b26070d..eab089e59 100644 --- a/odex25_base/am_sar_symbol/readme.txt +++ b/odex25_base/am_sar_symbol/readme.txt @@ -1,2 +1,43 @@ -After installing this module, copy the symbol () and paste it in the currency symbol field -for the Saudi Riyal (SAR) currency in: Accounting > Configuration > Accounting > Currencies. +SAR Symbol Font - Enhanced Version +================================ + +رمز الريال السعودي الجديد - نسخة محسنة +==================================== + +Features / المميزات: +=================== +✓ Automatic Saudi Riyal symbol installation - no manual setup required +✓ التثبيت التلقائي لرمز الريال السعودي - لا يتطلب إعداد يدوي + +✓ Compatible with custom themes (uses inherit fonts) +✓ متوافق مع القوالب المخصصة (يستخدم خطوط وراثية) + +✓ Clean implementation without font conflicts +✓ تطبيق نظيف بدون تعارض في الخطوط + +✓ Optimized for performance and minimal system impact +✓ محسن للأداء وتأثير أدنى على النظام + +Installation / التثبيت: +======================= +1. Install the module / تثبيت الموديول +2. The Saudi Riyal symbol will be automatically applied / سيتم تطبيق رمز الريال تلقائياً +3. No additional configuration needed / لا حاجة لإعدادات إضافية + +Technical Notes / ملاحظات تقنية: +=============================== +- Uses dedicated sar-symbol font for optimal rendering +- يستخدم خط sar-symbol المخصص للعرض الأمثل + +- Removed Tajawal font conflicts for better theme compatibility +- إزالة تعارضات خط تاجوال للتوافق الأفضل مع القوالب + +- Supports both Arabic and English interfaces +- يدعم الواجهات العربية والإنجليزية + +Version History / تاريخ الإصدارات: +================================= +v14.0.2.1.0: Enhanced compatibility, automatic setup, theme-friendly +v14.0.2.0.0: Original version with Tajawal font + +Author: bst-inn, Amro00743, Expert SA \ No newline at end of file