From 234993283311a2502a4e45e118de7e69fe97d31c Mon Sep 17 00:00:00 2001 From: maltayyar2 Date: Mon, 5 Jan 2026 00:37:54 +0300 Subject: [PATCH] [I18N] odex_takaful: automatic update Auto-generated commit based on local changes. --- odex25_takaful/odex_takaful/i18n/ar_001.po | 74 ++++++++++++++++++- .../models/donation_details_lines.py | 7 +- .../models/takaful_sponorship_model.py | 3 +- .../wizards/account_payment_register.py | 1 - .../wizards/account_payment_register.xml | 51 +++++++++++-- .../wizards/donation_extension_wizard.py | 1 - 6 files changed, 122 insertions(+), 15 deletions(-) diff --git a/odex25_takaful/odex_takaful/i18n/ar_001.po b/odex25_takaful/odex_takaful/i18n/ar_001.po index b25686607..96835784e 100644 --- a/odex25_takaful/odex_takaful/i18n/ar_001.po +++ b/odex25_takaful/odex_takaful/i18n/ar_001.po @@ -7657,4 +7657,76 @@ msgstr "مساهمة مالية بالأمر %s" #: model:ir.model.fields.selection,name:odex_takaful.selection__takaful_sponsorship__state__paid #: model_terms:ir.ui.view,arch_db:odex_takaful.takaful_sponsorship_view_search msgid "Paid" -msgstr "تم الدفع" \ No newline at end of file +msgstr "تم الدفع" +#. module: odex_takaful +#: model_terms:ir.ui.view,arch_db:odex_takaful.view_account_payment_register_form +msgid "Donor Bank Account" +msgstr "حساب المتبرع" + + +#. module: odex_takaful +#: model_terms:ir.ui.view,arch_db:odex_takaful.donation_extension_wizard +msgid "Months Amount" +msgstr "مبلغ الشهور" + +#. module: odex_takaful +#: model_terms:ir.ui.view,arch_db:odex_takaful.replace_benefit_wizard +msgid "Replacement Information" +msgstr "معلومات الاستبدال" + +#. module: odex_takaful +#: model_terms:ir.ui.view,arch_db:odex_takaful.replace_benefit_wizard +#: model_terms:ir.ui.view,arch_db:odex_takaful.orphan_replacement_wizard +msgid "Replacement Reason" +msgstr "سبب الاستبدال" + +#. module: odex_takaful +#: model_terms:ir.ui.view,arch_db:odex_takaful.add_benefit_wizard +msgid "Benefit Information" +msgstr "معلومات المستفيد" + +#. module: odex_takaful +#: model_terms:ir.ui.view,arch_db:odex_takaful.add_benefit_wizard +msgid "Add Benefit" +msgstr "إضافة مستفيد" + +#. module: odex_takaful +#: model_terms:ir.ui.view,arch_db:odex_takaful.replace_sponsor_wizard +msgid "Sponsor Information" +msgstr "معلومات المتبرع" + +#. module: odex_takaful +#: model_terms:ir.ui.view,arch_db:odex_takaful.replace_sponsor_wizard +msgid "Replace Sponsor" +msgstr "استبدال المتبرع" + +#. module: odex_takaful +#: model_terms:ir.ui.view,arch_db:odex_takaful.transfer_deduction_wizard_views +#: model_terms:ir.ui.view,arch_db:odex_takaful.benefit_month_payment_wiz_view +msgid "Print PDF" +msgstr "طباعة PDF" + +#. module: odex_takaful +#: model_terms:ir.ui.view,arch_db:odex_takaful.transfer_deduction_wizard_views +msgid "Print Excel" +msgstr "طباعة Excel" + +#. module: odex_takaful +#: model_terms:ir.ui.view,arch_db:odex_takaful.orphan_replacement_wizard +msgid "Replacement Wizard" +msgstr "معالج الاستبدال" + +#. module: odex_takaful +#: model_terms:ir.ui.view,arch_db:odex_takaful.esterdad_wizard +msgid "Esterdad Wizard" +msgstr "معالج الاسترداد" + +#. module: odex_takaful +#: model_terms:ir.ui.view,arch_db:odex_takaful.esterdad_wizard +msgid "Payment Details" +msgstr "تفاصيل الدفع" + +#. module: odex_takaful +#: model_terms:ir.ui.view,arch_db:odex_takaful.takaful_reports_wizards +msgid "Print The Report" +msgstr "طباعة التقرير" diff --git a/odex25_takaful/odex_takaful/models/donation_details_lines.py b/odex25_takaful/odex_takaful/models/donation_details_lines.py index fef0cef21..0a1c49d55 100644 --- a/odex25_takaful/odex_takaful/models/donation_details_lines.py +++ b/odex25_takaful/odex_takaful/models/donation_details_lines.py @@ -236,7 +236,7 @@ class DonationsDetailsLines(models.Model): # bank_transfer_attachment_file_name = fields.Char('Bank Transfer File Name', required=False) - @api.depends('sponsorship_duration' , 'product_template_id' , 'payment_month_count' , 'direct_debit') + @api.depends('sponsorship_duration', 'product_template_id', 'payment_month_count', 'direct_debit', 'record_type') def _compute_get_age_range(self): for rec in self: # ages field is only used for sponsorships (in _compute_members_domain_ids) @@ -735,7 +735,8 @@ class DonationsDetailsLines(models.Model): @api.depends('family_id','record_type') def _compute_family_domain_ids(self): for rec in self: - if rec.record_type == 'donation': + # Only fetch families for conditional donations where family_id field is used + if rec.record_type == 'donation' and rec.donation_mechanism == 'with_conditions': domain = [ '|', ('state', '=', 'second_approve'), @@ -745,7 +746,7 @@ class DonationsDetailsLines(models.Model): family = self.env['grant.benefit'].sudo().search(domain) rec.family_domain_ids = [(6, 0, family.ids)] if family else False else: - # No family selection needed for sponsorships or other types + # No family selection needed for sponsorships, unconditional donations, or other types rec.family_domain_ids = False @api.depends('gender', diff --git a/odex25_takaful/odex_takaful/models/takaful_sponorship_model.py b/odex25_takaful/odex_takaful/models/takaful_sponorship_model.py index 1c17b2cf0..0bb17e372 100644 --- a/odex25_takaful/odex_takaful/models/takaful_sponorship_model.py +++ b/odex25_takaful/odex_takaful/models/takaful_sponorship_model.py @@ -829,7 +829,6 @@ class TakafulSponsorship(models.Model): family_lines = sponsorship_lines.filtered(lambda l: l.family_id == family) bill_values = { 'takaful_sponsorship_id': sponsorship.id, - 'name': self.env['ir.sequence'].next_by_code('account.move.accrsp'), 'move_type': 'in_invoice', 'journal_id': benefit_journal_id, 'date': fields.Date.today(), @@ -1480,7 +1479,7 @@ class TakafulSponsorship(models.Model): current_invoice.sudo().write(invoice_values) invoice_id = current_invoice else: - invoice_values.update({'invoice_line_ids': invoice_line_vals, 'name': self.env['ir.sequence'].next_by_code('account.move.accrsp')}) + invoice_values.update({'invoice_line_ids': invoice_line_vals}) invoice_id = Invoice.create(invoice_values) for line in invoice_id.invoice_line_ids: diff --git a/odex25_takaful/odex_takaful/wizards/account_payment_register.py b/odex25_takaful/odex_takaful/wizards/account_payment_register.py index 18e7e675c..bc84844b2 100644 --- a/odex25_takaful/odex_takaful/wizards/account_payment_register.py +++ b/odex25_takaful/odex_takaful/wizards/account_payment_register.py @@ -135,7 +135,6 @@ class AccountRegisterPayment(models.TransientModel): bill_values = { 'takaful_sponsorship_id': sponsorship.id, - 'name': self.env['ir.sequence'].next_by_code('account.move.accrsp'), 'move_type': 'in_invoice', 'journal_id': benefit_journal_id, 'date': fields.Date.today(), diff --git a/odex25_takaful/odex_takaful/wizards/account_payment_register.xml b/odex25_takaful/odex_takaful/wizards/account_payment_register.xml index ad72cf3d8..507d73457 100644 --- a/odex25_takaful/odex_takaful/wizards/account_payment_register.xml +++ b/odex25_takaful/odex_takaful/wizards/account_payment_register.xml @@ -7,6 +7,39 @@ account.payment.register + + 1 + + + 2 + + + oe_center saudi_amount_field + font-size: 60px !important; height: 90px !important; font-weight: 800 !important; background-color: transparent; border: none !important; flex: 1 !important; min-width: 0 !important; text-align: center; font-family: 'SF Pro Display', 'Roboto', sans-serif; display: flex !important; flex-direction: row-reverse !important; justify-content: center !important; align-items: center !important; letter-spacing: -2px; + 0.00 + + + + @@ -35,12 +68,15 @@ context.get('sponsorship_payment') - - context.get('sponsorship_payment') + + + + + - + @@ -50,17 +86,18 @@ - + + + -