Skip to content

Commit 5b52787

Browse files
Alexis de Lattreetobella
Alexis de Lattre
authored andcommitted
[FIX] Bug OCA#96 bad use of new API
1 parent fe07d83 commit 5b52787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

account_banking_mandate/models/payment_line.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class PaymentLine(models.Model):
3131
comodel_name='account.banking.mandate', string='Direct Debit Mandate',
3232
domain=[('state', '=', 'valid')])
3333

34-
@api.multi
34+
@api.model
3535
def create(self, vals=None):
3636
"""If the customer invoice has a mandate, take it
3737
otherwise, take the first valid mandate of the bank account

0 commit comments

Comments
 (0)