[FIX] odex_takaful
This commit is contained in:
parent
a232831996
commit
76b94f8446
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue