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