[FIX] Bug #96 bad use of new API

This commit is contained in:
Alexis de Lattre
2015-01-14 18:08:17 +01:00
parent 5d4a435271
commit cd6c30e9af

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