From 2b67fb842af3011f64fa51bf4300274a4e969e49 Mon Sep 17 00:00:00 2001 From: Nossibaelhadi Date: Wed, 24 Dec 2025 21:02:22 +0300 Subject: [PATCH] [FIX] notes on partner bank payment --- .../models/donation_details_lines.py | 1 + .../views/takaful_sponorship_view.xml | 8 +++++++- .../wizards/account_payment_register.xml | 17 +++++++++-------- .../wizards/donation_extension_wizard.xml | 3 ++- 4 files changed, 19 insertions(+), 10 deletions(-) diff --git a/odex25_takaful/odex_takaful/models/donation_details_lines.py b/odex25_takaful/odex_takaful/models/donation_details_lines.py index 4ca012fef..1b2b59f73 100644 --- a/odex25_takaful/odex_takaful/models/donation_details_lines.py +++ b/odex25_takaful/odex_takaful/models/donation_details_lines.py @@ -852,6 +852,7 @@ class DonationsDetailsLines(models.Model): record_type = rec.sponsorship_id.record_type if rec.sponsorship_id else rec.sponsorship_mechanism_id.record_type if record_type == 'donation': + domain.append('|') domain.append(('donation_category', '=', 'donation')) domain.append(('donation_category', '=', 'endowment')) diff --git a/odex25_takaful/odex_takaful/views/takaful_sponorship_view.xml b/odex25_takaful/odex_takaful/views/takaful_sponorship_view.xml index ddf6f9c9b..6d3123a78 100644 --- a/odex25_takaful/odex_takaful/views/takaful_sponorship_view.xml +++ b/odex25_takaful/odex_takaful/views/takaful_sponorship_view.xml @@ -324,6 +324,11 @@ context="{'group_by': 'target_donation'}"/> + + @@ -563,7 +568,8 @@ + attrs="{'invisible': ['|', ('payment_month_count_visibility','!=', True),('direct_debit', '=', False)], 'required': [('direct_debit', '=', True)]}" + options="{'skip_disable_quick_create': True}"/> diff --git a/odex25_takaful/odex_takaful/wizards/account_payment_register.xml b/odex25_takaful/odex_takaful/wizards/account_payment_register.xml index 5e1430ed1..0bb9dee45 100644 --- a/odex25_takaful/odex_takaful/wizards/account_payment_register.xml +++ b/odex25_takaful/odex_takaful/wizards/account_payment_register.xml @@ -24,6 +24,7 @@ context.get('sponsorship_payment') + @@ -49,23 +50,23 @@ - + - - + +