From 4ccea8fd541ccb97fd44080bb5dc4b7653cad2f4 Mon Sep 17 00:00:00 2001 From: maltayyar2 Date: Mon, 12 Jan 2026 13:37:57 +0300 Subject: [PATCH] [IMP] odex_takaful: automatic update Auto-generated commit based on local changes. --- .../odex_takaful/models/donation_extension_history.py | 8 ++++++++ .../views/donation_extension_history_views.xml | 9 +++++++++ odex25_takaful/odex_takaful/views/reports_actions.xml | 1 + 3 files changed, 18 insertions(+) diff --git a/odex25_takaful/odex_takaful/models/donation_extension_history.py b/odex25_takaful/odex_takaful/models/donation_extension_history.py index 658176791..f6bfb371e 100644 --- a/odex25_takaful/odex_takaful/models/donation_extension_history.py +++ b/odex25_takaful/odex_takaful/models/donation_extension_history.py @@ -187,3 +187,11 @@ class DonationExtensionHistory(models.Model): 'target': 'new', 'type': 'ir.actions.act_window', } + + def action_print_extension_receipt(self): + """Print the extension receipt PDF report.""" + self.ensure_one() + return self.env.ref( + 'odex_takaful.extension_receipt_report' + ).report_action(self) + diff --git a/odex25_takaful/odex_takaful/views/donation_extension_history_views.xml b/odex25_takaful/odex_takaful/views/donation_extension_history_views.xml index 0487d2c9b..c600318b9 100644 --- a/odex25_takaful/odex_takaful/views/donation_extension_history_views.xml +++ b/odex25_takaful/odex_takaful/views/donation_extension_history_views.xml @@ -31,6 +31,15 @@
diff --git a/odex25_takaful/odex_takaful/views/reports_actions.xml b/odex25_takaful/odex_takaful/views/reports_actions.xml index 5e436b7d6..c398b33b5 100644 --- a/odex25_takaful/odex_takaful/views/reports_actions.xml +++ b/odex25_takaful/odex_takaful/views/reports_actions.xml @@ -65,6 +65,7 @@ (object.extension_ref and ('Extension Receipt - %s' % (object.extension_ref,))) or 'Extension Receipt' +