Merge pull request #5946 from expsa/orphan_report

orphan reports
This commit is contained in:
Tahir Hassan 2026-01-04 13:32:50 +04:00 committed by GitHub
commit 18ebeb058e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 699 additions and 0 deletions

View File

@ -61,6 +61,9 @@
'views/sponsorship_states.xml',
'views/takaful_notification.xml',
'reports/month_payment_template.xml',
'reports/sponsorship_receipt_report.xml',
'reports/orphan_mother_report.xml',
'reports/orphan_report.xml',
'wizards/takaful_reports_wizards.xml',
'wizards/refund_payment_wizard.xml',
'wizards/add_details_wizard.xml',

View File

@ -0,0 +1,335 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- Define landscape paper format for Orphan Mother Report -->
<record id="paperformat_orphan_mother_landscape" model="report.paperformat">
<field name="name">Orphan Mother Report Paper</field>
<field name="default" eval="False"/>
<field name="format">A4</field>
<field name="orientation">Landscape</field>
<field name="margin_top">0</field>
<field name="margin_bottom">0</field>
<field name="margin_left">0</field>
<field name="margin_right">0</field>
<field name="header_spacing">0</field>
</record>
<!-- Orphan Mother Report Template -->
<template id="report_orphan_mother_document">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="doc">
<!-- Get donation line from donations_details_lines_mechanism_ids relationship -->
<t t-set="donation_line" t-value="doc.donations_details_lines_mechanism_ids[0] if doc.donations_details_lines_mechanism_ids else False"/>
<t t-set="benefit_member" t-value="donation_line.benefit_id if donation_line and donation_line.benefit_id else False"/>
<t t-set="family" t-value="benefit_member.benefit_id if benefit_member and benefit_member.benefit_id else False"/>
<!-- Main Container -->
<table style="background: linear-gradient(to bottom, #ACCFCB 0%, #E0EAE9 50%, #C4B179 100%); width: 297mm; min-height: 210mm; margin: 0 auto; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); padding: 20px 0px 40px; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td>
<!-- Header Section -->
<table style="width: 100%; margin-bottom: 15px; padding: 0px 0px 0px 20px; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="text-align: right; vertical-align: middle;">
<table style="background-color: #22B6B3; border-radius: 30px 0px 0px 30px; padding: 10px 15px; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="text-align: center;">
<h1 style="font-size: 20px; font-weight: bold; color: white; margin: 0px; font-family: 'Cairo', Arial, sans-serif; padding: 5px 15px;">تقرير أم اليتيم</h1>
</td>
</tr>
</table>
</td>
<td style="width: 120px; vertical-align: middle;">
<img src="/odex_takaful/static/src/img/ensan-logo.png" alt="Logo" style="width: 100px; height: auto; max-height: 100px; display: block;"/>
</td>
</tr>
</table>
<!-- Body Section -->
<table style="width: 100%; padding: 0px 40px; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td>
<!-- Data Items Container -->
<table style="width: 100%; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<!-- Row 1: اسم الكافل + رقم الجوال -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #CCA761; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">اسم الكافل</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="donation_line.sponsor_id.name if donation_line and donation_line.sponsor_id else ''"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #CCA761; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">رقم الجوال</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="donation_line.sponsor_phone if donation_line else ''"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 2: Description -->
<tr>
<td colspan="3" style="padding: 2.5px;">
<table style="width: 100%; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td>
<p style="font-size: 16px; color: #136456; text-align: start; font-weight: bold; margin: 10px 0px; padding: 0px 40px; font-family: 'Cairo', Arial, sans-serif;">حين يصبح الأثر إنسانًا له اسم وقصة وابتسامة.. <br/> نعلم أن الكفالة ليست نهاية، بل بداية لعطاء مستدام، وأثر يصنع الفرق.</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- Row 3: اسم الأرملة + العمر -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #CCA761; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">اسم الأرملة</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="benefit_member.name if benefit_member else ''"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #CCA761; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">العمر</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="donation_line.age if donation_line and donation_line.age else (benefit_member.age if benefit_member and benefit_member.age else '')"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 4: رقم الملف + تم الالتحاق في إنسان عام -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">رقم الملف</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="donation_line.benefit_family_code if donation_line and donation_line.benefit_family_code else (doc.code if doc.code else '')"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">تم الالتحاق في إنسان عام</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="doc.create_date.strftime('%Y') if doc.create_date else ''"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 5: عدد أفراد الأسرة + الجنسية -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">عدد أفراد الأسرة</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="donation_line.number_of_family_member if donation_line and donation_line.number_of_family_member else (len(doc.member_ids) if doc.member_ids else '')"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">الجنسية</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="benefit_member.benefit_id.mother_country_id.name if benefit_member and benefit_member.benefit_id and benefit_member.benefit_id.mother_country_id else ''"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 6: المرحلة الدراسية + التقدير -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">المرحلة الدراسية</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="donation_line.education_level.name if donation_line and donation_line.education_level else (benefit_member.education_levels.name if benefit_member and benefit_member.education_levels else '')"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">التقدير</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;">-</td>
</tr>
</table>
</td>
</tr>
<!-- Row 7: الحالة الصحية + نوع السكن -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">الحالة الصحية</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="'يوجد أمراض' if (donation_line and donation_line.diseases_attachment_ids) or (benefit_member and benefit_member.diseases_attachment_ids) else 'طبيعي'"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">نوع السكن</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="doc.housing_id.name if doc.housing_id else ''"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 8: عنوان الأسرة + مبلغ الإيجار -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">عنوان الأسرة</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="doc.city_id.name if doc.city_id else ''"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">مبلغ الإيجار</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="doc.rent_amount if doc.rent_amount else '0'"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 9: حالة الأسرة + تاريخ نهاية الكفالة -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">حالة الأسرة</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="doc.benefit_category_id.name if doc.benefit_category_id else ''"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #CCA761; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">تاريخ نهاية الكفالة</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="donation_line.end_date.strftime('%Y-%m-%d') if donation_line and donation_line.end_date else ''"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 10: Section Title - مصادر دخل الأسرة -->
<tr>
<td colspan="3" style="padding: 2.5px 40px;">
<table style="width: 100%; height: 40px; background-color: #CCA761; border-radius: 30px; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="font-size: 16px; color: white; text-align: start; padding: 0px 20px; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;">مصادر دخل الأسرة</td>
</tr>
</table>
</td>
</tr>
<!-- Row 11: Income Sources - Dynamic from salary_ids -->
<!-- Get salaries from benefit_id.benefit_id.salary_ids (family.salary_ids) -->
<t t-set="family_salaries" t-value="benefit_member.benefit_id.salary_ids if benefit_member and benefit_member.benefit_id else []"/>
<t t-set="approved_salaries" t-value="family_salaries.filtered(lambda s: s.approved) if family_salaries else []"/>
<t t-set="social_security" t-value="approved_salaries.filtered(lambda s: s.income_type and ('ضمان' in s.income_type.name or 'اجتماعي' in s.income_type.name))"/>
<t t-set="mother_salary" t-value="approved_salaries.filtered(lambda s: s.is_mother_salary)"/>
<t t-set="retirement" t-value="approved_salaries.filtered(lambda s: s.income_type and 'تقاعد' in s.income_type.name)"/>
<t t-set="social_insurance" t-value="approved_salaries.filtered(lambda s: s.income_type and 'تأمين' in s.income_type.name)"/>
<t t-set="total_income" t-value="sum(approved_salaries.mapped('salary_amount')) if approved_salaries else (benefit_member.member_income if benefit_member and benefit_member.member_income else 0)"/>
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">الضمان الاجتماعي</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="sum(social_security.mapped('salary_amount')) if social_security else '-'"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">راتب الأم</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="sum(mother_salary.mapped('salary_amount')) if mother_salary else '-'"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 12: الراتب التقاعدي + التأمينات الاجتماعية -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">الراتب التقاعدي</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="sum(retirement.mapped('salary_amount')) if retirement else '-'"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">التأمينات الاجتماعية</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="sum(social_insurance.mapped('salary_amount')) if social_insurance else '-'"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 13: المجموع (single item) -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">المجموع</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="total_income if total_income else '-'"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px; vertical-align: top;"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</t>
</t>
</template>
<!-- Report Action for Orphan Mother Report -->
<record id="action_report_orphan_mother" model="ir.actions.report">
<field name="name">Orphan Mother Report</field>
<field name="model">takaful.sponsorship</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">odex_takaful.report_orphan_mother_document</field>
<field name="report_file">odex_takaful.report_orphan_mother_document</field>
<field name="print_report_name">
(object.code and ('Orphan Mother Report - %s' % (object.code,))) or 'Orphan Mother Report'
</field>
<field name="paperformat_id" ref="paperformat_orphan_mother_landscape"/>
<field name="binding_model_id" eval="False"/>
</record>
</data>
</odoo>

View File

@ -0,0 +1,336 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- Define landscape paper format for Orphan Report -->
<record id="paperformat_orphan_landscape" model="report.paperformat">
<field name="name">Orphan Report Paper</field>
<field name="default" eval="False"/>
<field name="format">A4</field>
<field name="orientation">Landscape</field>
<field name="margin_top">0</field>
<field name="margin_bottom">0</field>
<field name="margin_left">0</field>
<field name="margin_right">0</field>
<field name="header_spacing">0</field>
</record>
<!-- Orphan Report Template -->
<template id="report_orphan_document">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="doc">
<!-- Get donation line from donations_details_lines_mechanism_ids relationship -->
<t t-set="donation_line" t-value="doc.donations_details_lines_mechanism_ids[0] if doc.donations_details_lines_mechanism_ids else False"/>
<t t-set="benefit_member" t-value="donation_line.benefit_id if donation_line and donation_line.benefit_id else False"/>
<t t-set="family" t-value="benefit_member.benefit_id if benefit_member and benefit_member.benefit_id else False"/>
<!-- Main Container -->
<table style="background: linear-gradient(to bottom, #ACCFCB 0%, #E0EAE9 50%, #C4B179 100%); width: 297mm; min-height: 210mm; margin: 0 auto; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); padding: 20px 0px 40px; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td>
<!-- Header Section -->
<table style="width: 100%; margin-bottom: 15px; padding: 0px 0px 0px 20px; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="text-align: right; vertical-align: middle;">
<table style="background-color: #22B6B3; border-radius: 30px 0px 0px 30px; padding: 10px 15px; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="text-align: center;">
<h1 style="font-size: 20px; font-weight: bold; color: white; margin: 0px; font-family: 'Cairo', Arial, sans-serif; padding: 5px 15px;">تقرير اليتيم</h1>
</td>
</tr>
</table>
</td>
<td style="width: 120px; vertical-align: middle;">
<img src="/odex_takaful/static/src/img/ensan-logo.png" alt="Logo" style="width: 100px; height: auto; max-height: 100px; display: block;"/>
</td>
</tr>
</table>
<!-- Body Section -->
<table style="width: 100%; padding: 0px 40px; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td>
<!-- Data Items Container -->
<table style="width: 100%; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<!-- Row 1: اسم الكافل + رقم الجوال -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #CCA761; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">اسم الكافل</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="donation_line.sponsor_id.name if donation_line and donation_line.sponsor_id else ''"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #CCA761; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">رقم الجوال</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="donation_line.sponsor_phone if donation_line else ''"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 2: Description -->
<tr>
<td colspan="3" style="padding: 2.5px;">
<table style="width: 100%; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td>
<p style="font-size: 16px; color: #136456; text-align: start; font-weight: bold; margin: 5px 0px 0px; padding: 0px 40px; font-family: 'Cairo', Arial, sans-serif;">حين يصبح الأثر إنسانًا له اسم وقصة وابتسامة.. <br/> نعلم أن الكفالة ليست نهاية، بل بداية لعطاء مستدام، وأثر يصنع الفرق.</p>
<span style="font-size: 16px; color: #136456; text-align: start; font-weight: normal; margin: 10px 0px; padding: 0px 40px; font-family: 'Cairo', Arial, sans-serif;">ما بين الصفوف الدراسية، والهوايات الصغيرة والأمنيات البسيطة، نرفق لكم تقرير مفصل عن اليتيم المكفول:</span>
</td>
</tr>
</table>
</td>
</tr>
<!-- Row 3: اسم الأرملة + العمر -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #CCA761; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">اسم اليتيم</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="benefit_member.name if benefit_member else ''"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #CCA761; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">العمر</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="donation_line.age if donation_line and donation_line.age else (benefit_member.age if benefit_member and benefit_member.age else '')"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 4: رقم الملف + تم الالتحاق في إنسان عام -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">رقم الملف</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="donation_line.benefit_family_code if donation_line and donation_line.benefit_family_code else (doc.code if doc.code else '')"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">تم الالتحاق في إنسان عام</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="doc.create_date.strftime('%Y') if doc.create_date else ''"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 5: عدد أفراد الأسرة + الجنسية -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">عدد أفراد الأسرة</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="donation_line.number_of_family_member if donation_line and donation_line.number_of_family_member else (len(doc.member_ids) if doc.member_ids else '')"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">الجنسية</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="benefit_member.benefit_id.mother_country_id.name if benefit_member and benefit_member.benefit_id and benefit_member.benefit_id.mother_country_id else ''"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 6: المرحلة الدراسية + التقدير -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">المرحلة الدراسية</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="donation_line.education_level.name if donation_line and donation_line.education_level else (benefit_member.education_levels.name if benefit_member and benefit_member.education_levels else '')"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">التقدير</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;">-</td>
</tr>
</table>
</td>
</tr>
<!-- Row 7: الحالة الصحية + نوع السكن -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">الحالة الصحية</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="'يوجد أمراض' if (donation_line and donation_line.diseases_attachment_ids) or (benefit_member and benefit_member.diseases_attachment_ids) else 'طبيعي'"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">نوع السكن</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="doc.housing_id.name if doc.housing_id else ''"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 8: عنوان الأسرة + مبلغ الإيجار -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">عنوان الأسرة</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="doc.city_id.name if doc.city_id else ''"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">مبلغ الإيجار</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="doc.rent_amount if doc.rent_amount else '0'"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 9: حالة الأسرة + تاريخ نهاية الكفالة -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">حالة الأسرة</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="doc.benefit_category_id.name if doc.benefit_category_id else ''"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #CCA761; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">تاريخ نهاية الكفالة</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="donation_line.end_date.strftime('%Y-%m-%d') if donation_line and donation_line.end_date else ''"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 10: Section Title - مصادر دخل الأسرة -->
<tr>
<td colspan="3" style="padding: 2.5px 40px;">
<table style="width: 100%; height: 40px; background-color: #CCA761; border-radius: 30px; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="font-size: 16px; color: white; text-align: start; padding: 0px 20px; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;">مصادر دخل الأسرة</td>
</tr>
</table>
</td>
</tr>
<!-- Row 11: Income Sources - Dynamic from salary_ids -->
<!-- Get salaries from benefit_id.benefit_id.salary_ids (family.salary_ids) -->
<t t-set="family_salaries" t-value="benefit_member.benefit_id.salary_ids if benefit_member and benefit_member.benefit_id else []"/>
<t t-set="approved_salaries" t-value="family_salaries.filtered(lambda s: s.approved) if family_salaries else []"/>
<t t-set="social_security" t-value="approved_salaries.filtered(lambda s: s.income_type and ('ضمان' in s.income_type.name or 'اجتماعي' in s.income_type.name))"/>
<t t-set="mother_salary" t-value="approved_salaries.filtered(lambda s: s.is_mother_salary)"/>
<t t-set="retirement" t-value="approved_salaries.filtered(lambda s: s.income_type and 'تقاعد' in s.income_type.name)"/>
<t t-set="social_insurance" t-value="approved_salaries.filtered(lambda s: s.income_type and 'تأمين' in s.income_type.name)"/>
<t t-set="total_income" t-value="sum(approved_salaries.mapped('salary_amount')) if approved_salaries else (benefit_member.member_income if benefit_member and benefit_member.member_income else 0)"/>
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">الضمان الاجتماعي</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="sum(social_security.mapped('salary_amount')) if social_security else '-'"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">راتب الأم</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="sum(mother_salary.mapped('salary_amount')) if mother_salary else '-'"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 12: الراتب التقاعدي + التأمينات الاجتماعية -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">الراتب التقاعدي</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="sum(retirement.mapped('salary_amount')) if retirement else '-'"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">التأمينات الاجتماعية</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="sum(social_insurance.mapped('salary_amount')) if social_insurance else '-'"/></td>
</tr>
</table>
</td>
</tr>
<!-- Row 13: المجموع (single item) -->
<tr>
<td style="width: 48%; padding: 2.5px 40px; vertical-align: top;">
<table style="width: 100%; height: 40px; border-radius: 30px; outline: 1px solid #136456; background-color: white; border-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%; height: 40px; background-color: #136456; color: white; text-align: center; font-size: 16px; font-weight: bold; border-radius: 30px; padding: 0px 20px; font-family: 'Cairo', Arial, sans-serif;">المجموع</td>
<td style="width: 50%; text-align: center; font-size: 16px; color: #136456; font-weight: bold; font-family: 'Cairo', Arial, sans-serif;"><t t-esc="total_income if total_income else '-'"/></td>
</tr>
</table>
</td>
<td style="width: 4%;"></td>
<td style="width: 48%; padding: 2.5px; vertical-align: top;"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</t>
</t>
</template>
<!-- Report Action for Orphan Report -->
<record id="action_report_orphan" model="ir.actions.report">
<field name="name">Orphan Report</field>
<field name="model">takaful.sponsorship</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">odex_takaful.report_orphan_document</field>
<field name="report_file">odex_takaful.report_orphan_document</field>
<field name="print_report_name">
(object.code and ('Orphan Report - %s' % (object.code,))) or 'Orphan Report'
</field>
<field name="paperformat_id" ref="paperformat_orphan_landscape"/>
<field name="binding_model_id" eval="False"/>
</record>
</data>
</odoo>

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -0,0 +1,24 @@
@font-face {
font-family: 'Cairo';
src: url('fonts/Cairo-Regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Cairo';
src: url('fonts/Cairo-SemiBold.ttf') format('truetype');
font-weight: 600;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Cairo';
src: url('fonts/Cairo-Bold.ttf') format('truetype');
font-weight: 700;
font-style: normal;
font-display: swap;
}

View File

@ -5,6 +5,7 @@
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/scss" href="/odex_takaful/static/src/scss/donation_item_views.scss"/>
<link rel="stylesheet" type="text/scss" href="/odex_takaful/static/src/scss/fix_table_overflow.scss"/>
<link rel="stylesheet" type="text/scss" href="/odex_takaful/static/src/scss/orphan-fonts.scss"/>
<script type="text/javascript" src="/odex_takaful/static/src/js/product_product_views.js"/>
<script type="text/javascript" src="/odex_takaful/static/src/js/donation_catalog_button.js"/>
<script type="text/javascript" src="/odex_takaful/static/src/js/donation_catalog_controls.js"/>