[UPD] odex_takaful:

This commit is contained in:
Samir Ladoui 2026-01-22 05:26:05 +01:00
parent 83ab683b35
commit 529a3cabf6
2 changed files with 6 additions and 6 deletions

View File

@ -104,7 +104,7 @@
<td style="width: auto; text-align: right; vertical-align: middle; padding: 40px 0px 0px; white-space: nowrap;">
<h1 style="font-size: 20px; font-weight: bold; color: white; padding: 10px 20px 10px 30px; margin: 0px; font-family: 'Cairo', Arial, sans-serif; white-space: nowrap; border-radius: 30px 0px 0px 30px; background-color: #22B6B3;">تقرير <t t-if="doc.relationn.relation_type == 'mother'" t-esc="'أم'"/> اليتيم</h1>
</td>
<td style="width: 75%;"></td>
<td style="width: 78%;"></td>
<td style="width: auto; text-align: left; vertical-align: middle; padding-top: 20px; padding-left: 10px;">
<img t-attf-src="http://{{request.httprequest.host}}/odex_takaful/static/src/img/ensan-logo.png" alt="Logo" style="width: 100px; height: auto; max-height: 100px; display: block;"/>
</td>
@ -140,10 +140,7 @@
<tr>
<td>
<p style="font-size: 14px; color: #136456; text-align: start; font-weight: bold; margin: 5px 0px 0px; padding: 0px 40px; font-family: 'Cairo', Arial, sans-serif;">حين يصبح الأثر إنسانًا له اسم وقصة وابتسامة.. <br/> نعلم أن الكفالة ليست نهاية، بل بداية لعطاء مستدام، وأثر يصنع الفرق.</p>
<span t-if="doc.relationn.relation_type != 'mother'" style="font-size: 14px; color: #136456; text-align: start; font-weight: normal; margin: 10px 0px; padding: 0px 40px; font-family: 'Cairo', Arial, sans-serif;">ما بين الصفوف الدراسية، والهوايات الصغيرة والأمنيات البسيطة، نرفق لكم تقرير مفصل عن اليتيم المكفول:</span>
<t t-else="1">
<p class="mb-5"></p>
</t>
<span style="font-size: 14px; color: #136456; text-align: start; font-weight: normal; margin: 10px 0px; padding: 0px 40px; font-family: 'Cairo', Arial, sans-serif;">ما بين الصفوف الدراسية، والهوايات الصغيرة والأمنيات البسيطة، نرفق لكم تقرير مفصل عن اليتيم المكفول:</span>
</td>
</tr>
</table>

View File

@ -392,7 +392,7 @@ class DonationExtensionWizardLine(models.TransientModel):
self.extension_invoice_id = invoice_id
# Create extension history record
self.env['donation.extension.history'].create({
history_id = self.env['donation.extension.history'].create({
'donation_detail_id': donation_line_id.id,
'sponsorship_id': donation_line_id.sponsorship_id.id or donation_line_id.sponsorship_mechanism_id.id,
'extension_amount': self.total_donation_amount,
@ -410,6 +410,9 @@ class DonationExtensionWizardLine(models.TransientModel):
'last_digits': self.last_digits,
'bank_id': self.bank_id.id,
})
if self.direct_debit:
history_id.sudo()._apply_extension_on_sponsorship()
self.env['sponsorship.scheduling.line'].sudo().cron_process_scheduled_payments()
if not self.direct_debit:
return self.extension_invoice_id, donation_line_id