From 7cb8325c42d36b298e13beac500e58e43e9d9457 Mon Sep 17 00:00:00 2001 From: Samir Ladoui Date: Sun, 25 Jan 2026 15:11:37 +0100 Subject: [PATCH] [UPD] odex_takaful --- odex25_takaful/odex_takaful/i18n/ar_001.po | 7 ++++++- odex25_takaful/odex_takaful/security/security_data.xml | 7 ++++++- odex25_takaful/odex_takaful/wizards/esterdad.py | 2 ++ odex25_takaful/odex_takaful/wizards/esterdad.xml | 3 ++- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/odex25_takaful/odex_takaful/i18n/ar_001.po b/odex25_takaful/odex_takaful/i18n/ar_001.po index a6fcb3bdd..a8feb19c9 100644 --- a/odex25_takaful/odex_takaful/i18n/ar_001.po +++ b/odex25_takaful/odex_takaful/i18n/ar_001.po @@ -7586,4 +7586,9 @@ msgstr "طباعة تقرير أم اليتيم/اليتيم" #. module: odex_takaful #: model_terms:ir.ui.view,arch_db:odex_takaful.takaful_account_move_inherit_form msgid "Previous Payments" -msgstr "المدفوعات السابقة" \ No newline at end of file +msgstr "المدفوعات السابقة" + +#. module: odex_takaful +#: model:res.groups,name:odex_takaful.group_refund_change_mobile +msgid "Change Sponsor Mobile in Refund Wizard" +msgstr "تغيير جوال الكافل في معالج الاسترداد" diff --git a/odex25_takaful/odex_takaful/security/security_data.xml b/odex25_takaful/odex_takaful/security/security_data.xml index 446fdb34e..4337fd02c 100644 --- a/odex25_takaful/odex_takaful/security/security_data.xml +++ b/odex25_takaful/odex_takaful/security/security_data.xml @@ -92,11 +92,16 @@ - + Sponsor - Department Access + + Change Sponsor Mobile in Refund Wizard + + + Donations Officer: Own Donations diff --git a/odex25_takaful/odex_takaful/wizards/esterdad.py b/odex25_takaful/odex_takaful/wizards/esterdad.py index 87fce8937..f960ef6cc 100644 --- a/odex25_takaful/odex_takaful/wizards/esterdad.py +++ b/odex25_takaful/odex_takaful/wizards/esterdad.py @@ -149,6 +149,8 @@ class EsterdadWizard(models.Model): }) if rec.sponsor_id.sponsor_or_donor_type == 'unknown' and not rec.sponsor_id.sponsor_phone: rec.sponsor_id.sponsor_phone = rec.mobile + if rec.sponsor_id.sponsor_or_donor_type == 'registered' and rec.id_num: + rec.sponsor_id.sponsor_id.id_number == rec.id_num # context['default_payment_ids'] = [(6, 0, rec.payment_ids.ids)] view = self.env.ref('odex_takaful.view_otp_wizard_form') return { diff --git a/odex25_takaful/odex_takaful/wizards/esterdad.xml b/odex25_takaful/odex_takaful/wizards/esterdad.xml index 917749770..d9f11387d 100644 --- a/odex25_takaful/odex_takaful/wizards/esterdad.xml +++ b/odex25_takaful/odex_takaful/wizards/esterdad.xml @@ -50,7 +50,8 @@ - + +