From 18e805d0e6a76bd0f3b382b6dd07f7b60d7a46c7 Mon Sep 17 00:00:00 2001 From: Akim Juillerat Date: Fri, 1 Oct 2021 08:29:09 +0000 Subject: [PATCH] [FIX] account: usage of self in loop of payment register compute closes odoo/odoo#77699 X-original-commit: 7936736f208cd7483ae8b9a508cf7387cd504b83 Signed-off-by: Laurent Smet Signed-off-by: Xavier Morel (xmo) --- addons/account/wizard/account_payment_register.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/wizard/account_payment_register.py b/addons/account/wizard/account_payment_register.py index 491415271eb..66a6d277198 100644 --- a/addons/account/wizard/account_payment_register.py +++ b/addons/account/wizard/account_payment_register.py @@ -282,7 +282,7 @@ class AccountPaymentRegister(models.TransientModel): # it's a compute editable field and then, should be computed in a separated method. for wizard in self: if wizard.can_edit_wizard: - batches = self._get_batches() + batches = wizard._get_batches() wizard.communication = wizard._get_batch_communication(batches[0]) else: wizard.communication = False