[FIX] account_payment_error: Avoid singleton error in allowed_journal_ids

Fixes #612
This commit is contained in:
Pedro M. Baeza
2019-06-26 11:49:25 +02:00
parent 3f011cbc39
commit 95b737a225
2 changed files with 2 additions and 2 deletions

View File

@@ -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, "

View File

@@ -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):