mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] sale_payment_web: incorrect call on super
This commit is contained in:
committed by
Cedric Collins
parent
003c3bc769
commit
8b0c63d29a
@@ -74,7 +74,7 @@ class AccountPaymentRegister(models.TransientModel):
|
|||||||
def _onchange_journal(self):
|
def _onchange_journal(self):
|
||||||
active_ids = self._context.get('active_ids')
|
active_ids = self._context.get('active_ids')
|
||||||
if self._context.get('active_model') != 'sale.order' or not 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
|
journal = self.journal_id
|
||||||
if journal:
|
if journal:
|
||||||
domain_payment = [('payment_type', '=', 'inbound'), ('id', 'in', journal.inbound_payment_method_ids.ids)]
|
domain_payment = [('payment_type', '=', 'inbound'), ('id', 'in', journal.inbound_payment_method_ids.ids)]
|
||||||
|
|||||||
Reference in New Issue
Block a user