diff --git a/odex25_takaful/odex_takaful/i18n/ar_001.po b/odex25_takaful/odex_takaful/i18n/ar_001.po
index 62c705e26..5f55e382e 100644
--- a/odex25_takaful/odex_takaful/i18n/ar_001.po
+++ b/odex25_takaful/odex_takaful/i18n/ar_001.po
@@ -7567,5 +7567,16 @@ msgstr "حساب الجمعية"
#. module: odex_takaful
#: model_terms:ir.ui.view,arch_db:odex_takaful.donation_extension_wizard_form
-msgid "Sub Payments"
-msgstr "دفع متعدد"
+msgid "Extend"
+msgstr "تمديد/دفع"
+
+#. module: odex_takaful
+#: model:ir.model.fields,field_description:odex_takaful.field_donation_extension_wizard__total_extension_amount
+#: model:ir.model.fields,field_description:odex_takaful.field_donation_extension_wizard_line__total_donation_amount
+msgid "Total Extension Amount"
+msgstr "إجمالي مبلغ الدفع"
+
+#. module: odex_takaful
+#: model:ir.model.fields,field_description:odex_takaful.field_donation_extension_wizard__remaining_amount
+msgid "Remaining Amount"
+msgstr "المبلغ المتبقى"
diff --git a/odex25_takaful/odex_takaful/models/donation_details_lines.py b/odex25_takaful/odex_takaful/models/donation_details_lines.py
index 721f781ea..9b0e5f69e 100644
--- a/odex25_takaful/odex_takaful/models/donation_details_lines.py
+++ b/odex25_takaful/odex_takaful/models/donation_details_lines.py
@@ -1152,6 +1152,7 @@ class DonationsDetailsLines(models.Model):
'target': 'new',
'context': {
'donation_detail_ids': self.ids,
+ 'no_quick_close': True
},
}
diff --git a/odex25_takaful/odex_takaful/models/res_partner.py b/odex25_takaful/odex_takaful/models/res_partner.py
index 4167b994d..bb21ce779 100644
--- a/odex25_takaful/odex_takaful/models/res_partner.py
+++ b/odex25_takaful/odex_takaful/models/res_partner.py
@@ -135,6 +135,26 @@ class ResPartner(models.Model):
if is_family_or_beneficiary and is_donor_vendor_sponsor:
raise ValidationError(_("A contact cannot be both Family/Beneficiary and Donor/Member/Sponsor at the same time!"))
+ @api.model
+ def search(self, args, offset=0, limit=None, order=None, count=False):
+
+ if not self.env.context.get('from_contact_search'):
+ return super().search(args, offset=offset, limit=limit, order=order, count=count)
+
+ if self.env.context.get('mail_read') or self.env.context.get('mail_message_origin'):
+ return super().search(args, offset=offset, limit=limit, order=order, count=count)
+
+ base_results = super().search(args, offset=offset, limit=limit, order=order)
+
+ if not base_results:
+ return base_results
+
+ children = super().search([('parent_id', 'in', base_results.ids)])
+
+ final_ids = list(set(base_results.ids + children.ids))
+
+ return super().search([('id', 'in', final_ids)], offset=0, limit=limit, order=order, count=count)
+
@api.model
def _name_search(self, name, args=None, operator='ilike', limit=100, name_get_uid=None):
if not args:
diff --git a/odex25_takaful/odex_takaful/static/src/js/hide_close_button.js b/odex25_takaful/odex_takaful/static/src/js/hide_close_button.js
new file mode 100644
index 000000000..a06b47186
--- /dev/null
+++ b/odex25_takaful/odex_takaful/static/src/js/hide_close_button.js
@@ -0,0 +1,47 @@
+odoo.define('odex_takaful.hide_close_button', function (require) {
+ "use strict";
+
+ const Dialog = require('web.Dialog');
+ const ActionManager = require('web.ActionManager');
+
+ Dialog.include({
+ /**
+ * @override
+ */
+ open: function () {
+ var self = this;
+ this.opened(function () {
+ setTimeout(function () {
+ var parent = self.getParent();
+
+ if (parent instanceof ActionManager) {
+
+ var action = parent.getCurrentActionInDialog();
+ console.log(action);
+ if (action) {
+
+ if (action.context) {
+ let model = action.res_model;
+ if (model === 'donation.extension.wizard' || model === 'account.payment.register') {
+ if (self.$modal) {
+ self.$modal.find('.modal-header button.close').hide();
+ self.$modal.find('.modal-header .modal-title').css("width", "100%");
+ }
+
+ if (self.$el) {
+ self.$el.find('.o_cp_top_left').hide();
+ self.$el.find('.o_cp_bottom_left').hide();
+ self.$el.find('.o_cp_top_right').css("width", "100%");
+ self.$el.find('.o_cp_bottom_right').css("width", "100%");
+ }
+ }
+ }
+ }
+ }
+ }, 0);
+ });
+
+ return this._super.apply(this, arguments);
+ },
+ });
+});
diff --git a/odex25_takaful/odex_takaful/views/assets.xml b/odex25_takaful/odex_takaful/views/assets.xml
index 8b0a40f23..9c3de7b04 100644
--- a/odex25_takaful/odex_takaful/views/assets.xml
+++ b/odex25_takaful/odex_takaful/views/assets.xml
@@ -8,6 +8,7 @@
+
diff --git a/odex25_takaful/odex_takaful/views/donations_details_lines.xml b/odex25_takaful/odex_takaful/views/donations_details_lines.xml
index ad511541d..0506e1e48 100644
--- a/odex25_takaful/odex_takaful/views/donations_details_lines.xml
+++ b/odex25_takaful/odex_takaful/views/donations_details_lines.xml
@@ -70,15 +70,15 @@