From 76b94f84461251c129f16abd0b042f58ff3d71a7 Mon Sep 17 00:00:00 2001 From: Samir Ladoui Date: Thu, 22 Jan 2026 17:31:10 +0100 Subject: [PATCH] [FIX] odex_takaful --- odex25_takaful/odex_takaful/wizards/account_payment_register.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/odex25_takaful/odex_takaful/wizards/account_payment_register.py b/odex25_takaful/odex_takaful/wizards/account_payment_register.py index fdfe4078e..611259526 100644 --- a/odex25_takaful/odex_takaful/wizards/account_payment_register.py +++ b/odex25_takaful/odex_takaful/wizards/account_payment_register.py @@ -142,6 +142,8 @@ class AccountRegisterPayment(models.TransientModel): for rec in self: if rec.takaful_payment_method_id and rec.takaful_payment_method_id.journal_id: sponsorships = self.env['takaful.sponsorship'].browse(self.env.context.get('sponsorship_id')) + if self.env.context.get('wizard_force_show_all'): + sponsorships = sponsorships.sudo() branch_ids = sponsorships.mapped('branch_custom_id.id') rec.journal_id = rec.takaful_payment_method_id.journal_id.id