From dbdb02ef6eafdc52ea5fb28d9f9f1e2b1422d0ed Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Mon, 13 Oct 2014 12:16:16 +0200 Subject: [PATCH] [FIX] account_banking_mandate: Fix id get from Recordset --- account_banking_mandate/models/payment_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_banking_mandate/models/payment_line.py b/account_banking_mandate/models/payment_line.py index 43e0c07a9..5a975869f 100644 --- a/account_banking_mandate/models/payment_line.py +++ b/account_banking_mandate/models/payment_line.py @@ -55,7 +55,7 @@ class PaymentLine(models.Model): [('partner_bank_id', '=', partner_bank_id), ('state', '=', 'valid')]) if mandates: - vals['mandate_id'] = mandates.id + vals['mandate_id'] = mandates[0].id return super(PaymentLine, self).create(vals) @api.one