mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] Bug #96 bad use of new API
This commit is contained in:
committed by
Enric Tobella
parent
818918d511
commit
e04f9e407f
@@ -31,7 +31,7 @@ class PaymentLine(models.Model):
|
|||||||
comodel_name='account.banking.mandate', string='Direct Debit Mandate',
|
comodel_name='account.banking.mandate', string='Direct Debit Mandate',
|
||||||
domain=[('state', '=', 'valid')])
|
domain=[('state', '=', 'valid')])
|
||||||
|
|
||||||
@api.multi
|
@api.model
|
||||||
def create(self, vals=None):
|
def create(self, vals=None):
|
||||||
"""If the customer invoice has a mandate, take it
|
"""If the customer invoice has a mandate, take it
|
||||||
otherwise, take the first valid mandate of the bank account
|
otherwise, take the first valid mandate of the bank account
|
||||||
|
|||||||
Reference in New Issue
Block a user