[IMP] odex_takaful: automatic update
Auto-generated commit based on local changes.
This commit is contained in:
parent
0af05da3f2
commit
e29dad6d6a
|
|
@ -134,8 +134,7 @@ class DonationExtensionHistory(models.Model):
|
|||
base_url = self.env['ir.config_parameter'].sudo().get_param('web.base.url', '')
|
||||
for rec in self:
|
||||
if rec.id:
|
||||
# Use public route /sponsorship/html/ for public access
|
||||
rec.receipt_url = "%s/sponsorship/html/odex_takaful.report_extension_receipt_document/%s" % (
|
||||
rec.receipt_url = "%s/sponsorship/pdf/odex_takaful.report_extension_receipt_document/%s" % (
|
||||
base_url, rec.id
|
||||
)
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -30,20 +30,20 @@
|
|||
alt="ﷺ"/>
|
||||
</span><br/> في الجنة.
|
||||
</div>
|
||||
<div style="font-size: 1.5rem; color: #6B6B6A;">
|
||||
<div style="font-size: 1.3rem; color: #6B6B6A;">
|
||||
ونتشرف دائما باستقبال عطائك المستمر لدعم أبنائكم الأيتام.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Extension info -->
|
||||
<div style="text-align: right; margin-bottom: 20px;">
|
||||
<div style="font-size: 1.5rem; color: #8F9090;">
|
||||
<div style="font-size: 1.3rem; color: #8F9090;">
|
||||
<span style="font-weight: bold;">رقم الكفالة: </span>
|
||||
<t t-esc="sponsorship.code"/>
|
||||
</div>
|
||||
<div style="font-size: 1.5rem; color: #8F9090;">
|
||||
<div style="font-size: 1.4rem; color: #8F9090;">
|
||||
<span style="font-weight: bold;">تاريخ التجديد: </span>
|
||||
<bdi style="display: inline-block; direction: rtl; unicode-bidi: embed;">
|
||||
<bdi style="display: inline; direction: rtl; unicode-bidi: embed; white-space: nowrap;">
|
||||
<span t-field="all_extensions[0].extension_date"
|
||||
t-options='{"format": "dd MMMM yyyy - HH:mm"}'/>
|
||||
</bdi>
|
||||
|
|
@ -99,10 +99,10 @@
|
|||
<td style="text-align: center; padding: 8px; font-size: 1.3rem; color: #387F75;">
|
||||
<t t-set="amt" t-value="ext.extension_amount"/>
|
||||
<t t-if="amt == int(amt)">
|
||||
<span t-esc="'{:,.0f}'.format(amt)"/> ر.س
|
||||
<span t-esc="'{:,.0f}'.format(amt)"/> <small>ر.س</small>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span t-esc="'{:,.2f}'.format(amt)"/> ر.س
|
||||
<span t-esc="'{:,.2f}'.format(amt)"/> <small>ر.س</small>
|
||||
</t>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -123,10 +123,10 @@
|
|||
<strong>
|
||||
<t t-set="total_amt" t-value="sum(ext.extension_amount for ext in all_extensions)"/>
|
||||
<t t-if="total_amt == int(total_amt)">
|
||||
<span t-esc="'{:,.0f}'.format(total_amt)"/> ر.س
|
||||
<span t-esc="'{:,.0f}'.format(total_amt)"/> <small>ر.س</small>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span t-esc="'{:,.2f}'.format(total_amt)"/> ر.س
|
||||
<span t-esc="'{:,.2f}'.format(total_amt)"/> <small>ر.س</small>
|
||||
</t>
|
||||
</strong>
|
||||
</td>
|
||||
|
|
@ -164,10 +164,10 @@
|
|||
</t>
|
||||
|
||||
<t t-if="pay_amt == int(pay_amt)">
|
||||
<span t-esc="'{:,.0f}'.format(pay_amt)"/> ر.س
|
||||
<span t-esc="'{:,.0f}'.format(pay_amt)"/> <small>ر.س</small>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span t-esc="'{:,.2f}'.format(pay_amt)"/> ر.س
|
||||
<span t-esc="'{:,.2f}'.format(pay_amt)"/> <small>ر.س</small>
|
||||
</t>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -181,10 +181,10 @@
|
|||
<td style="text-align: center; padding: 8px; font-size: 1.4rem; color: #387F75; font-weight: bold;">
|
||||
<t t-set="final_amt" t-value="sum(ext.extension_amount for ext in all_extensions)"/>
|
||||
<t t-if="final_amt == int(final_amt)">
|
||||
<span t-esc="'{:,.0f}'.format(final_amt)"/> ر.س
|
||||
<span t-esc="'{:,.0f}'.format(final_amt)"/> <small>ر.س</small>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span t-esc="'{:,.2f}'.format(final_amt)"/> ر.س
|
||||
<span t-esc="'{:,.2f}'.format(final_amt)"/> <small>ر.س</small>
|
||||
</t>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@
|
|||
<!-- Sponsorship info -->
|
||||
<div style="text-align: right; margin-bottom: 20px;">
|
||||
<t t-set="variable" t-value="value"/>
|
||||
<div style="font-size: 1.5rem; color: #8F9090;">
|
||||
<div style="font-size: 1.3rem; color: #8F9090;">
|
||||
<t t-if="doc.record_type == 'sponsorship'">
|
||||
<span style="font-weight: bold;">رقم الكفالة: </span>
|
||||
</t>
|
||||
|
|
@ -69,9 +69,9 @@
|
|||
</t>
|
||||
<t t-esc="doc.code"/>
|
||||
</div>
|
||||
<div style="font-size: 1.5rem; color: #8F9090;">
|
||||
<div style="font-size: 1.3rem; color: #8F9090;">
|
||||
<span style="font-weight: bold;">التاريخ: </span>
|
||||
<bdi style="display: inline-block; direction: rtl; unicode-bidi: embed;">
|
||||
<bdi style="display: inline-block; direction: rtl; unicode-bidi: embed; white-space: nowrap;">
|
||||
<span t-field="doc.sponsorship_creation_date"
|
||||
t-options='{"format": "dd MMMM yyyy - HH:mm"}'/>
|
||||
</bdi>
|
||||
|
|
@ -155,10 +155,10 @@
|
|||
<!-- المبلغ -->
|
||||
<td style="text-align: center; padding: 8px; font-size: 1.3rem; color: #387F75;">
|
||||
<t t-if="original_amt == int(original_amt)">
|
||||
<span t-esc="'{:,.0f}'.format(original_amt)"/> ر.س
|
||||
<span t-esc="'{:,.0f}'.format(original_amt)"/> <small>ر.س</small>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span t-esc="'{:,.2f}'.format(original_amt)"/> ر.س
|
||||
<span t-esc="'{:,.2f}'.format(original_amt)"/> <small>ر.س</small>
|
||||
</t>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -182,10 +182,10 @@
|
|||
<strong>
|
||||
<t t-set="total_amt" t-value="doc.total_sponsorship_amount"/>
|
||||
<t t-if="total_amt == int(total_amt)">
|
||||
<span t-esc="'{:,.0f}'.format(total_amt)"/> ر.س
|
||||
<span t-esc="'{:,.0f}'.format(total_amt)"/> <small>ر.س</small>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span t-esc="'{:,.2f}'.format(total_amt)"/> ر.س
|
||||
<span t-esc="'{:,.2f}'.format(total_amt)"/> <small>ر.س</small>
|
||||
</t>
|
||||
</strong>
|
||||
</td>
|
||||
|
|
@ -232,10 +232,10 @@
|
|||
</td>
|
||||
<td style="text-align: center; padding: 8px; font-size: 1.3rem; color: #387F75;">
|
||||
<t t-if="pay_amt == int(pay_amt)">
|
||||
<span t-esc="'{:,.0f}'.format(pay_amt)"/> ر.س
|
||||
<span t-esc="'{:,.0f}'.format(pay_amt)"/> <small>ر.س</small>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span t-esc="'{:,.2f}'.format(pay_amt)"/> ر.س
|
||||
<span t-esc="'{:,.2f}'.format(pay_amt)"/> <small>ر.س</small>
|
||||
</t>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -250,10 +250,10 @@
|
|||
<td style="text-align: center; padding: 8px; font-size: 1.4rem; color: #387F75; font-weight: bold;">
|
||||
<t t-set="final_amt" t-value="doc.total_sponsorship_amount"/>
|
||||
<t t-if="final_amt == int(final_amt)">
|
||||
<span t-esc="'{:,.0f}'.format(final_amt)"/> ر.س
|
||||
<span t-esc="'{:,.0f}'.format(final_amt)"/> <small>ر.س</small>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span t-esc="'{:,.2f}'.format(final_amt)"/> ر.س
|
||||
<span t-esc="'{:,.2f}'.format(final_amt)"/> <small>ر.س</small>
|
||||
</t>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
Loading…
Reference in New Issue