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