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 committed Jan 14, 2015
1 parent 5d4a435 commit cd6c30e
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 cd6c30e

Please sign in to comment.