From 0f6ea9f5466a60d2dd26ba6d5198e19a338b5c20 Mon Sep 17 00:00:00 2001 From: Samir Ladoui Date: Sun, 25 Jan 2026 14:48:45 +0100 Subject: [PATCH 1/5] [UPD] odex_takaful --- .../odex_takaful/security/security_data.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/odex25_takaful/odex_takaful/security/security_data.xml b/odex25_takaful/odex_takaful/security/security_data.xml index 632c44b54..446fdb34e 100644 --- a/odex25_takaful/odex_takaful/security/security_data.xml +++ b/odex25_takaful/odex_takaful/security/security_data.xml @@ -163,7 +163,7 @@ [ '|', ('branch_custom_id.branch.manager_id.user_id', 'in', [user.id, False]), - ('branch_custom_id.branch', 'child_of', user.employee_id.department_id.id) + ('branch_custom_id', 'child_of', user.branch_custom_id.id) ] @@ -174,10 +174,10 @@ [ '|', '|', '|', ('sponsorship_id.branch_custom_id.branch.manager_id.user_id', 'in', [user.id, False]), - ('sponsorship_id.branch_custom_id.branch', 'child_of', user.employee_id.department_id.id), + ('sponsorship_id.branch_custom_id', 'child_of', user.branch_custom_id.id), ('sponsorship_mechanism_id.branch_custom_id.branch.manager_id.user_id', 'in', [user.id, False]), - ('sponsorship_mechanism_id.branch_custom_id.branch', 'child_of', user.employee_id.department_id.id) + ('sponsorship_mechanism_id.branch_custom_id', 'child_of', user.branch_custom_id.id) ] @@ -189,11 +189,11 @@ '|', '|', '|', '|', ('create_uid', '=', user.id), - ('create_uid.employee_id.department_id.manager_id.user_id', 'in', [user.id, False]), - ('create_uid.employee_id.department_id', 'child_of', user.employee_id.department_id.id), + ('create_uid.branch_custom_id.branch.manager_id.user_id', 'in', [user.id, False]), + ('create_uid.branch_custom_id', 'child_of', user.branch_custom_id.id), ('sponsorship_id.branch_custom_id.branch.manager_id.user_id', 'in', [user.id, False]), - ('sponsorship_id.branch_custom_id.branch', 'child_of', user.employee_id.department_id.id) + ('sponsorship_id.branch_custom_id', 'child_of', user.branch_custom_id.id) ] @@ -201,7 +201,7 @@ Sponsor - Department Based Access - [('branch_custom_id.branch', 'child_of', user.employee_id.department_id.id)] + [('branch_custom_id', 'child_of', user.branch_custom_id.id)] From 7cb8325c42d36b298e13beac500e58e43e9d9457 Mon Sep 17 00:00:00 2001 From: Samir Ladoui Date: Sun, 25 Jan 2026 15:11:37 +0100 Subject: [PATCH 2/5] [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 @@ - + + From 0a0499a873e01b08817f4afb17b8ad0062d79263 Mon Sep 17 00:00:00 2001 From: Samir Ladoui Date: Sun, 25 Jan 2026 15:14:07 +0100 Subject: [PATCH 3/5] [UPD] odex_takaful --- odex25_takaful/odex_takaful/wizards/esterdad.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/odex25_takaful/odex_takaful/wizards/esterdad.py b/odex25_takaful/odex_takaful/wizards/esterdad.py index f960ef6cc..1627b17be 100644 --- a/odex25_takaful/odex_takaful/wizards/esterdad.py +++ b/odex25_takaful/odex_takaful/wizards/esterdad.py @@ -147,6 +147,9 @@ class EsterdadWizard(models.Model): rec.sponsor_id.write({ 'cancel_record_id': rec.id }) + rec.sponsor_id.sponsor_id.write({ + 'first_name': rec.sponsor_name + }) 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: From 75c029699f612ef4c246403cede2955f5ac27da2 Mon Sep 17 00:00:00 2001 From: Samir Ladoui Date: Sun, 25 Jan 2026 16:13:58 +0100 Subject: [PATCH 4/5] [FIX] odex_takaful --- .../odex_takaful/reports/extension_receipt_report.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odex25_takaful/odex_takaful/reports/extension_receipt_report.xml b/odex25_takaful/odex_takaful/reports/extension_receipt_report.xml index 78db5836c..1a745e6eb 100644 --- a/odex25_takaful/odex_takaful/reports/extension_receipt_report.xml +++ b/odex25_takaful/odex_takaful/reports/extension_receipt_report.xml @@ -6,8 +6,8 @@ - - + + From 46e32a48daa5500f54b5823638a4fb39d3162200 Mon Sep 17 00:00:00 2001 From: Samir Ladoui Date: Sun, 25 Jan 2026 19:02:43 +0100 Subject: [PATCH 5/5] [FIX] odex_takaful --- .../reports/extension_receipt_report.xml | 5 +++-- .../odex_takaful/security/security_data.xml | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/odex25_takaful/odex_takaful/reports/extension_receipt_report.xml b/odex25_takaful/odex_takaful/reports/extension_receipt_report.xml index 1a745e6eb..3e7a1e585 100644 --- a/odex25_takaful/odex_takaful/reports/extension_receipt_report.xml +++ b/odex25_takaful/odex_takaful/reports/extension_receipt_report.xml @@ -6,8 +6,9 @@ - - + + + diff --git a/odex25_takaful/odex_takaful/security/security_data.xml b/odex25_takaful/odex_takaful/security/security_data.xml index 4337fd02c..8d0e3563e 100644 --- a/odex25_takaful/odex_takaful/security/security_data.xml +++ b/odex25_takaful/odex_takaful/security/security_data.xml @@ -168,7 +168,7 @@ [ '|', ('branch_custom_id.branch.manager_id.user_id', 'in', [user.id, False]), - ('branch_custom_id', 'child_of', user.branch_custom_id.id) + ('branch_custom_id', '=', user.branch_custom_id.id) ] @@ -179,10 +179,10 @@ [ '|', '|', '|', ('sponsorship_id.branch_custom_id.branch.manager_id.user_id', 'in', [user.id, False]), - ('sponsorship_id.branch_custom_id', 'child_of', user.branch_custom_id.id), + ('sponsorship_id.branch_custom_id', '=', user.branch_custom_id.id), ('sponsorship_mechanism_id.branch_custom_id.branch.manager_id.user_id', 'in', [user.id, False]), - ('sponsorship_mechanism_id.branch_custom_id', 'child_of', user.branch_custom_id.id) + ('sponsorship_mechanism_id.branch_custom_id', '=', user.branch_custom_id.id) ] @@ -195,10 +195,10 @@ ('create_uid', '=', user.id), ('create_uid.branch_custom_id.branch.manager_id.user_id', 'in', [user.id, False]), - ('create_uid.branch_custom_id', 'child_of', user.branch_custom_id.id), + ('create_uid.branch_custom_id', '=', user.branch_custom_id.id), ('sponsorship_id.branch_custom_id.branch.manager_id.user_id', 'in', [user.id, False]), - ('sponsorship_id.branch_custom_id', 'child_of', user.branch_custom_id.id) + ('sponsorship_id.branch_custom_id', '=', user.branch_custom_id.id) ] @@ -206,7 +206,7 @@ Sponsor - Department Based Access - [('branch_custom_id', 'child_of', user.branch_custom_id.id)] + [('branch_custom_id', '=', user.branch_custom_id.id)]