From d68e2e08f8995c32aba23515bdaeabbdff1a008e Mon Sep 17 00:00:00 2001 From: Samir Ladoui Date: Thu, 22 Jan 2026 18:04:32 +0100 Subject: [PATCH] [UPD] odex_takaful: donation extensions menu --- odex25_takaful/odex_takaful/i18n/ar_001.po | 3 +- .../odex_takaful/security/security_data.xml | 35 +++++++++++++++++++ .../views/takaful_menus_actions.xml | 6 ++++ 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/odex25_takaful/odex_takaful/i18n/ar_001.po b/odex25_takaful/odex_takaful/i18n/ar_001.po index f1bd7971d..ac4e4ea17 100644 --- a/odex25_takaful/odex_takaful/i18n/ar_001.po +++ b/odex25_takaful/odex_takaful/i18n/ar_001.po @@ -1993,8 +1993,9 @@ msgstr "قالب رسالة SMS انتهاء التبرع" #. module: odex_takaful #: model:ir.model,name:odex_takaful.model_donation_extension_history +#: model:ir.ui.menu,name:odex_takaful.menu_donation_extension_history msgid "Donation Extension History" -msgstr "سجل تمديد التبرع" +msgstr "سجلات التمديد" #. module: odex_takaful #: model:ir.model.fields,field_description:odex_takaful.field_res_company__donation_extension_reminder_sms_template_id diff --git a/odex25_takaful/odex_takaful/security/security_data.xml b/odex25_takaful/odex_takaful/security/security_data.xml index 0467ec997..b0ef12236 100644 --- a/odex25_takaful/odex_takaful/security/security_data.xml +++ b/odex25_takaful/odex_takaful/security/security_data.xml @@ -147,6 +147,15 @@ + + Sponsorships Officer: Own Donation Extensions + + + [ + ('create_uid', '=', user.id) + ] + + Branch Manager: All Branch Sponsorships @@ -171,6 +180,25 @@ ('sponsorship_mechanism_id.branch_custom_id.branch', 'child_of', user.employee_id.department_id.id) ] + + + Branch Manager: All Branch Donation Extensions + + + [ + '|', '|', '|', '|', '|', '|', + ('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), + + ('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_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 System Manager: See All Donations Extensions + + + [(1, '=', 1)] + + \ No newline at end of file diff --git a/odex25_takaful/odex_takaful/views/takaful_menus_actions.xml b/odex25_takaful/odex_takaful/views/takaful_menus_actions.xml index dd6ffd42d..fa3389f7c 100644 --- a/odex25_takaful/odex_takaful/views/takaful_menus_actions.xml +++ b/odex25_takaful/odex_takaful/views/takaful_menus_actions.xml @@ -45,6 +45,12 @@ action="action_global_extension_wizard" sequence="3"/> + +