[FIX] account: usage of self in loop of payment register compute
closes odoo/odoo#77699 X-original-commit: 7936736f208cd7483ae8b9a508cf7387cd504b83 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com> Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
This commit is contained in:
committed by
Xavier Morel
parent
ce639f28a9
commit
18e805d0e6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user