Merge pull request #97 from akretion/8.0-fix-bug-96-mandate

[FIX] Bug #96 bad use of new API
This commit is contained in:
Pedro M. Baeza
2015-01-14 19:41:38 +01:00

View File

@@ -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