From c67f72da35ed136d11f575562d74dfe1c10afe41 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Wed, 14 Jan 2015 18:08:17 +0100 Subject: [PATCH] [FIX] Bug #96 bad use of new API --- 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 6d02d1a895c7..249b977157b3 100644 --- a/account_banking_mandate/models/payment_line.py +++ b/account_banking_mandate/models/payment_line.py @@ -31,7 +31,7 @@ class PaymentLine(models.Model): comodel_name='account.banking.mandate', string='Direct Debit Mandate', domain=[('state', '=', 'valid')]) - @api.multi + @api.model def create(self, vals=None): """If the customer invoice has a mandate, take it otherwise, take the first valid mandate of the bank account