Skip to content

Commit

Permalink
[FIX] Bug OCA#96 bad use of new API
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis de Lattre authored and etobella committed Nov 16, 2017
1 parent 818918d commit e04f9e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_banking_mandate/models/payment_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e04f9e4

Please sign in to comment.