Merge branch 'fix/13.0/sale_payment_web__fix_improper_call_to_super' into '13.0'

fix/13.0/sale_payment_web__fix_improper_call_to_super into 13.0

See merge request hibou-io/hibou-odoo/suite!737
This commit is contained in:
Jared Kipe
2020-12-17 20:39:48 +00:00

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)]