REM am_sar_symbol module

This commit is contained in:
younes 2025-09-02 12:13:56 +01:00
parent b2bd5b8fd6
commit 887da597b8
20 changed files with 0 additions and 356 deletions

View File

@ -1 +0,0 @@

View File

@ -1,53 +0,0 @@
{
'name': 'SAR Symbol Font | Saudi Currency Symbol | Riyal Saudi Icon',
'version': '14.0.2.1.0',
'category': 'Accounting',
'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:
* PDF Reports
* Point of Sale Interface
* Invoices
* All system views
* Automatic currency symbol update
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
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, Expert SA',
"support": "amro00743@gmail.com",
'website': 'https://www.linkedin.com/in/amro00743/',
'license': 'LGPL-3',
'price': 0.0,
'currency': 'USD',
'depends': ['base', 'web'],
'data': [
'data/res_currency_data.xml',
'views/assets.xml',
],
'images': ['static/description/banner.png'],
'installable': True,
'auto_install': False,
'application': False,
'license': 'LGPL-3',
}

View File

@ -1,26 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- تحديث رمز الريال السعودي تلقائياً عند تثبيت الموديول -->
<!-- إلغاء حماية التحديث مؤقتاً -->
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value eval="[('module', '=', 'base'), ('name', '=', 'SAR')]" />
</function>
<value eval="{'noupdate': False}" />
</function>
<!-- تحديث رمز العملة السعودية بالرمز الجديد -->
<record id="base.SAR" model="res.currency">
<field name="symbol"></field>
<field name="position">before</field>
</record>
<!-- إعادة تفعيل حماية التحديث -->
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value eval="[('module', '=', 'base'), ('name', '=', 'SAR')]" />
</function>
<value eval="{'noupdate': True}" />
</function>
</odoo>

View File

@ -1,43 +0,0 @@
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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 293 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

View File

@ -1,87 +0,0 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan" style="color:#875A7B;">SAR Symbol Font</h2>
<h3 class="oe_slogan" style="color:#875A7B;">رمز الريال السعودي</h3>
<h3 class="oe_slogan">Add the new Saudi Riyal symbol to your Odoo system</h3>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<div class="alert alert-info" style="padding:8px;font-weight:300;font-size:20px;">
<i class="fa fa-hand-o-right"></i><b> Key Features</b>
</div>
<ul class="list-unstyled">
<li style="padding:8px 0;">✓ Adds the new Saudi Riyal (SAR) symbol to your system</li>
<li style="padding:8px 0;">✓ Works in PDF reports</li>
<li style="padding:8px 0;">✓ Compatible with Point of Sale interface</li>
<li style="padding:8px 0;">✓ Shows in invoices and all system views</li>
</ul>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<div class="alert alert-info" style="padding:8px;font-weight:300;font-size:20px;">
<i class="fa fa-hand-o-right"></i><b> Installation Guide</b>
</div>
<p class="oe_mt32" style="text-align:justify;">
After installing this module, follow these steps:
</p>
<ol>
<li>Go to Accounting > Configuration > Accounting > Currencies</li>
<li>Find the Saudi Riyal (SAR) currency</li>
<li>Copy this symbol () and paste it in the currency symbol field</li>
</ol>
<div class="oe_demo oe_screenshot">
<img src="1.png" style="border:1px solid gray;"/>
</div>
<div class="oe_demo oe_screenshot">
<img src="2.png" style="border:1px solid gray;"/>
</div>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<div class="alert alert-info" style="padding:8px;font-weight:300;font-size:20px;">
<i class="fa fa-hand-o-right"></i><b> Changelog</b>
</div>
<ul class="list-unstyled">
<li style="padding:8px 0;"><b>June 2, 2025:</b> Fixed display of Riyal currency in accounting reports</li>
</ul>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<div class="alert alert-warning" style="padding:8px;font-weight:300;font-size:20px;">
<i class="fa fa-warning"></i><b> Important Note</b>
</div>
<p class="oe_mt32">
Please ensure there are no other font-family customizations in your system views and invoices that might conflict with this module.
</p>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan" style="color:#875A7B;">Need Support?</h2>
<div class="oe_mt16" style="text-align:center;">
<p>Contact: <a href="mailto:Amro00743@gmail.com">Amro00743@gmail.com</a></p>
</div>
</div>
</div>
</section>

View File

@ -1,69 +0,0 @@
/* ===== خط رمز الريال السعودي الجديد فقط ===== */
@font-face {
font-family: 'sar-symbol';
src: url('../fonts/sar-symbol.eot?ebwrxj');
src: url('../fonts/sar-symbol.eot?ebwrxj#iefix') format('embedded-opentype'),
url('../fonts/sar-symbol.ttf?ebwrxj') format('truetype'),
url('../fonts/sar-symbol.woff?ebwrxj') format('woff'),
url('../fonts/sar-symbol.svg?ebwrxj#sar-symbol') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}
/* تنسيق أيقونات الريال */
[class^="icon-sar"], [class*=" icon-sar"] {
font-family: 'sar-symbol' !important;
-webkit-font-feature-settings: 'liga';
font-feature-settings: 'liga';
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-sar:before {
content: "\e900";
}
/* ===== دعم رمز الريال في الحقول النقدية ===== */
.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;
}
/* تقارير PDF */
.page, .header, .footer {
font-family: inherit, 'sar-symbol' !important;
}
/* رمز العملة في الحقول */
.oe_currency_value::before,
.o_account_report_column_value::before,
.o_account_report_summary_value::before,
.o_account_report_line [data-parent-id] .o_account_report_column_value::before {
content: '\e900';
font-family: 'sar-symbol' !important;
display: inline-block;
margin-right: 0;
visibility: hidden;
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;
}

View File

@ -1,11 +0,0 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>Generated by IcoMoon</metadata>
<defs>
<font id="icomoon" horiz-adv-x="1024">
<font-face units-per-em="1024" ascent="960" descent="-64" />
<missing-glyph horiz-adv-x="1024" />
<glyph unicode="&#x20;" horiz-adv-x="512" d="" />
<glyph unicode="&#xe900;" glyph-name="sar" horiz-adv-x="916" d="M570.214 52.851v0c-16.35-36.253-27.157-75.594-31.297-116.851l345.99 73.549c16.35 36.245 27.149 75.594 31.297 116.851l-345.99-73.549zM884.906 229.893c16.35 36.245 27.157 75.594 31.297 116.851l-269.515-57.321v110.193l238.21 50.622c16.35 36.245 27.157 75.594 31.297 116.851l-269.515-57.272v396.286c-41.298-23.188-77.974-54.053-107.788-90.461v-328.744l-107.788-22.911v496.013c-41.298-23.18-77.974-54.053-107.788-90.461v-428.455l-241.177-51.249c-16.35-36.245-27.165-75.594-31.314-116.851l272.49 57.908v-138.768l-292.027-62.057c-16.35-36.245-27.157-75.594-31.297-116.851l305.67 64.958c24.883 5.175 46.269 19.887 60.174 40.132l56.058 83.125c5.819 8.599 9.21 18.966 9.21 30.132v122.239l107.788 22.911v-220.385l346.006 73.581z" />
</font></defs></svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -1,66 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="assets_backend" name="am_assets_backend" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/css"
href="/am_sar_symbol/static/src/css/style.css" />
</xpath>
</template>
<template id="assets_frontend" name="am_assets_frontend" inherit_id="web.assets_frontend">
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/css"
href="/am_sar_symbol/static/src/css/style.css" />
</xpath>
</template>
<template id="assets_common" name="am_assets_common" inherit_id="web.assets_common">
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/css"
href="/am_sar_symbol/static/src/css/style.css" />
</xpath>
</template>
<template id="report_assets_common" name="am_report_assets_common"
inherit_id="web.report_assets_common">
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/css"
href="/am_sar_symbol/static/src/css/style.css" />
</xpath>
</template>
<template id="report_assets_pdf" name="am_report_assets_pdf"
inherit_id="web.report_assets_pdf">
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/css"
href="/am_sar_symbol/static/src/css/style.css" />
</xpath>
</template>
<template id="point_of_sale_assets" name="am_point_of_sale_assets"
inherit_id="point_of_sale.assets">
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/css"
href="/am_sar_symbol/static/src/css/style.css" />
</xpath>
</template>
<template id="qunit_suite_tests" name="am_qunit_suite_tests"
inherit_id="web.qunit_suite_tests">
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/css"
href="/am_sar_symbol/static/src/css/style.css" />
</xpath>
</template>
<template id="assets_tests" name="am_assets_tests"
inherit_id="web.assets_tests">
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/css"
href="/am_sar_symbol/static/src/css/style.css" />
</xpath>
</template>
</data>
</odoo>