diff --git a/odex25_takaful/odex_takaful/__manifest__.py b/odex25_takaful/odex_takaful/__manifest__.py
index 2fab481f3..19e9ee2c4 100644
--- a/odex25_takaful/odex_takaful/__manifest__.py
+++ b/odex25_takaful/odex_takaful/__manifest__.py
@@ -84,6 +84,7 @@
'views/product_views.xml',
'views/payment_machine_views.xml',
'views/account_payment_views.xml',
+ 'views/global_extension_wizard_view.xml',
'views/takaful_menus_actions.xml',
'views/benefit_category_views.xml',
'data/message_template_data.xml',
@@ -91,6 +92,7 @@
'wizards/transfer_deduction_wizard_views.xml',
'reports/transfer_deduction_report.xml',
'reports/transfer_deduction_report_templates.xml',
+
],
'qweb': [
'static/src/xml/takaful_dashboard.xml',
diff --git a/odex25_takaful/odex_takaful/models/donation_details_lines.py b/odex25_takaful/odex_takaful/models/donation_details_lines.py
index 6540c51b7..587624e0a 100644
--- a/odex25_takaful/odex_takaful/models/donation_details_lines.py
+++ b/odex25_takaful/odex_takaful/models/donation_details_lines.py
@@ -1435,3 +1435,9 @@ class DonationsDetailsLines(models.Model):
'default_donation_detail_id': self.id,
},
}
+
+ @api.model
+ def search(self, args, offset=0, limit=None, order=None, count=False):
+ if self.env.context.get('wizard_force_show_all'):
+ self = self.sudo()
+ return super(DonationsDetailsLines, self).search(args, offset, limit, order, count)
diff --git a/odex25_takaful/odex_takaful/security/ir.model.access.csv b/odex25_takaful/odex_takaful/security/ir.model.access.csv
index 25b8c5a55..62d217964 100644
--- a/odex25_takaful/odex_takaful/security/ir.model.access.csv
+++ b/odex25_takaful/odex_takaful/security/ir.model.access.csv
@@ -54,4 +54,5 @@ access_replace_benefit_wizard,replace.benefit.wizard.access,model_replace_benefi
access_group_esterdad_wizard,access_group_esterdad_wizard,model_esterdad_wizard,,1,1,1,0
access_group_otp_confirmation_wizard,access_group_otp_confirmation_wizard,model_otp_confirmation_wizard,,1,1,1,0
access_payment_machine,access_payment_machine,model_payment_machine,group_kufula_user,1,1,1,1
-access_payment_machine_manager,access_payment_machine_manager,model_payment_machine,sponsorship_system_manager_group,1,1,1,1
\ No newline at end of file
+access_payment_machine_manager,access_payment_machine_manager,model_payment_machine,sponsorship_system_manager_group,1,1,1,1
+access_global_extension_wizard,access_global_extension_wizard,model_global_extension_wizard,,1,1,1,1
\ No newline at end of file
diff --git a/odex25_takaful/odex_takaful/views/global_extension_wizard_view.xml b/odex25_takaful/odex_takaful/views/global_extension_wizard_view.xml
new file mode 100644
index 000000000..1f6e58163
--- /dev/null
+++ b/odex25_takaful/odex_takaful/views/global_extension_wizard_view.xml
@@ -0,0 +1,56 @@
+
+
+
+
+
+ global.extension.wizard.form
+ global.extension.wizard
+
+
+
+
+
+
+ Global Extension
+ ir.actions.act_window
+ global.extension.wizard
+ form
+
+ new
+
+
+
+
\ 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 477b84f07..dd6ffd42d 100644
--- a/odex25_takaful/odex_takaful/views/takaful_menus_actions.xml
+++ b/odex25_takaful/odex_takaful/views/takaful_menus_actions.xml
@@ -39,6 +39,12 @@
+
+
diff --git a/odex25_takaful/odex_takaful/wizards/__init__.py b/odex25_takaful/odex_takaful/wizards/__init__.py
index 2b250a3b5..7b1f1c613 100644
--- a/odex25_takaful/odex_takaful/wizards/__init__.py
+++ b/odex25_takaful/odex_takaful/wizards/__init__.py
@@ -12,3 +12,4 @@ from . import add_benefit_wizard
from . import replace_benefit_wizard
from . import account_payment_register
from . import esterdad
+from . import global_extension_wizard
diff --git a/odex25_takaful/odex_takaful/wizards/global_extension_wizard.py b/odex25_takaful/odex_takaful/wizards/global_extension_wizard.py
new file mode 100644
index 000000000..cb9f3463b
--- /dev/null
+++ b/odex25_takaful/odex_takaful/wizards/global_extension_wizard.py
@@ -0,0 +1,33 @@
+# -*- coding: utf-8 -*-
+from odoo import models, fields, api
+
+
+class GlobalExtensionWizard(models.TransientModel):
+ _name = 'global.extension.wizard'
+ _description = 'Global Extension Wizard'
+
+ # Field for number of months
+ number_of_months = fields.Integer(
+ string='Number of Months',
+ required=True,
+ default=1
+ )
+
+ # Field to select multiple donation lines
+ # Assumes the target model is 'donations.details.lines' as specified
+ line_ids = fields.Many2many(
+ comodel_name='donations.details.lines',
+ string='Donation Lines'
+ )
+
+
+ def action_confirm(self):
+ """
+ Empty method for the Confirm action.
+ You will implement the logic here.
+ """
+ # Example logic access:
+ # for wizard in self:
+ # selected_lines = wizard.line_ids
+ # months = wizard.number_of_months
+ return {'type': 'ir.actions.act_window_close'}
\ No newline at end of file