Add Saudi Riyal (SAR) symbol
This commit is contained in:
parent
b19fc9e81f
commit
37afbe7965
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
'name': 'SAR Symbol Font | Saudi Currency Symbol | Riyal Saudi Icon',
|
||||
'version': '14.0.2.0.0',
|
||||
'category': 'Accounting',
|
||||
'summary': 'Add the new Saudi Riyal (SAR) symbol to your Odoo system',
|
||||
'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
|
||||
|
||||
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.
|
||||
|
||||
Note: Please ensure there are no other font-family customizations in your system views and invoices
|
||||
that might conflict with this module.
|
||||
""",
|
||||
'author': 'bst-inn, Amro00743',
|
||||
"support": "amro00743@gmail.com",
|
||||
'website': 'https://www.linkedin.com/in/amro00743/',
|
||||
'license': 'LGPL-3',
|
||||
'price': 0.0,
|
||||
'currency': 'USD',
|
||||
'depends': ['base','web'],
|
||||
'data': [
|
||||
'views/assets.xml',
|
||||
],
|
||||
'images': ['static/description/banner.png'],
|
||||
'installable': True,
|
||||
'auto_install': False,
|
||||
'application': False,
|
||||
'license': 'LGPL-3',
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
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.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 81 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 293 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 89 KiB |
|
|
@ -0,0 +1,87 @@
|
|||
<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>
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
@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');
|
||||
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"] {
|
||||
/* 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;
|
||||
font-weight: normal;
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
line-height: 1;
|
||||
|
||||
/* Better Font Rendering =========== */
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.icon-sar:before {
|
||||
content: "\e900";
|
||||
}
|
||||
|
||||
/* General font settings */
|
||||
*:not(.fa):not(.oi) {
|
||||
font-family: 'Tajawal-Regular', 'sar-symbol', sans-serif !important;
|
||||
}
|
||||
|
||||
/* Report specific elements */
|
||||
.page, .header, .footer {
|
||||
font-family: 'Tajawal-Regular', 'sar-symbol', sans-serif !important;
|
||||
}
|
||||
|
||||
/* Special class for SAR amount fields */
|
||||
.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;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,11 @@
|
|||
<?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=" " horiz-adv-x="512" d="" />
|
||||
<glyph unicode="" 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>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,66 @@
|
|||
<?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>
|
||||
Loading…
Reference in New Issue