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

fix/13.0/sale_payment_web__fix_improper_call_to_super into 13.0-test

See merge request hibou-io/hibou-odoo/suite!736
This commit is contained in:
Hibou Bot
2020-12-14 22:26:36 +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)]