[FIX] sale_payment_web: incorrect call on super

This commit is contained in:
Connor Christian
2020-12-14 17:25:24 -05:00
committed by Cedric Collins
parent 003c3bc769
commit 8b0c63d29a

View File

@@ -74,7 +74,7 @@ class AccountPaymentRegister(models.TransientModel):
def _onchange_journal(self):
active_ids = self._context.get('active_ids')
if self._context.get('active_model') != 'sale.order' or not active_ids:
return super(AccountPaymentRegister, self).default_get(fields)
return super(AccountPaymentRegister, self)._onchange_journal()
journal = self.journal_id
if journal:
domain_payment = [('payment_type', '=', 'inbound'), ('id', 'in', journal.inbound_payment_method_ids.ids)]