From 3eded9f3b433d002c42102f36582cbbc268cbfdb Mon Sep 17 00:00:00 2001 From: maltayyar2 Date: Mon, 12 Jan 2026 13:19:33 +0300 Subject: [PATCH] [IMP] odex_takaful: automatic update Auto-generated commit based on local changes. --- odex25_takaful/odex_takaful/__manifest__.py | 1 + .../odex_takaful/models/account_payment.py | 7 ++++ .../views/account_payment_views.xml | 33 +++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 odex25_takaful/odex_takaful/views/account_payment_views.xml diff --git a/odex25_takaful/odex_takaful/__manifest__.py b/odex25_takaful/odex_takaful/__manifest__.py index 281635cae..996f1e043 100644 --- a/odex25_takaful/odex_takaful/__manifest__.py +++ b/odex25_takaful/odex_takaful/__manifest__.py @@ -82,6 +82,7 @@ 'views/takaful_payment_method.xml', 'views/product_views.xml', 'views/payment_machine_views.xml', + 'views/account_payment_views.xml', 'views/takaful_menus_actions.xml', 'views/benefit_category_views.xml', 'data/message_template_data.xml', diff --git a/odex25_takaful/odex_takaful/models/account_payment.py b/odex25_takaful/odex_takaful/models/account_payment.py index fb4d56481..a06f7b993 100644 --- a/odex25_takaful/odex_takaful/models/account_payment.py +++ b/odex25_takaful/odex_takaful/models/account_payment.py @@ -5,6 +5,13 @@ class AccountPayment(models.Model): _inherit = 'account.payment' takaful_sponsorship_id = fields.Many2one(related="move_id.takaful_sponsorship_id") + branch_custom_id = fields.Many2one( + 'branch.settings', + string="Branch", + related='takaful_sponsorship_id.branch_custom_id', + store=True, + readonly=True + ) confirm_payment_refund = fields.Binary() IBN_number = fields.Integer() confirm_payment_refund_image = fields.Binary() diff --git a/odex25_takaful/odex_takaful/views/account_payment_views.xml b/odex25_takaful/odex_takaful/views/account_payment_views.xml new file mode 100644 index 000000000..2a7ad0104 --- /dev/null +++ b/odex25_takaful/odex_takaful/views/account_payment_views.xml @@ -0,0 +1,33 @@ + + + + + + account.payment.search.inherit.takaful + account.payment + + + + + + + + + + + + + + + + + + + + + + + + + +