From ec73fba185875dddc2c58fc9aae8cf765b579955 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Mon, 1 Feb 2016 19:35:31 +0100 Subject: [PATCH] [FIX] account_banking_mandate: Fix name_get call --- account_banking_mandate/models/payment_line.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/account_banking_mandate/models/payment_line.py b/account_banking_mandate/models/payment_line.py index 9a176cf61..3752dec97 100644 --- a/account_banking_mandate/models/payment_line.py +++ b/account_banking_mandate/models/payment_line.py @@ -69,8 +69,6 @@ class PaymentLine(models.Model): "'%s' which is not attached to the mandate '%s' (this " "mandate is attached to the bank account '%s').") % (self.name, - self.env['res.partner.bank'].name_get( - [self.bank_id.id])[0][1], + self.bank_id.name_get()[0][1], self.mandate_id.unique_mandate_reference, - self.env['res.partner.bank'].name_get( - [self.mandate_id.partner_bank_id.id])[0][1])) + self.mandate_id.partner_bank_id.name_get()[0][1]))