mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] account_payment_error: Avoid singleton error in allowed_journal_ids
Fixes #612
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
{
|
||||
'name': 'Account Payment Order',
|
||||
'version': '12.0.1.0.0',
|
||||
'version': '12.0.1.0.1',
|
||||
'license': 'AGPL-3',
|
||||
'author': "ACSONE SA/NV, "
|
||||
"Therp BV, "
|
||||
|
||||
@@ -109,7 +109,7 @@ class AccountPaymentOrder(models.Model):
|
||||
record.payment_mode_id.fixed_journal_id)
|
||||
elif record.payment_mode_id.bank_account_link == 'variable':
|
||||
record.allowed_journal_ids = (
|
||||
self.payment_mode_id.variable_journal_ids)
|
||||
record.payment_mode_id.variable_journal_ids)
|
||||
|
||||
@api.multi
|
||||
def unlink(self):
|
||||
|
||||
Reference in New Issue
Block a user