mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[RFR] also for _prepare_payment_line
This commit is contained in:
@@ -130,10 +130,11 @@ class PaymentOrderCreate(models.TransientModel):
|
||||
'target': 'new',
|
||||
}
|
||||
|
||||
@api.model
|
||||
@api.multi
|
||||
def _prepare_payment_line(self, payment, line):
|
||||
"""This function is designed to be inherited
|
||||
The resulting dict is passed to the create method of payment.line"""
|
||||
self.ensure_one()
|
||||
_today = fields.Date.context_today(self)
|
||||
date_to_pay = False # no payment date => immediate payment
|
||||
if payment.date_prefered == 'due':
|
||||
|
||||
Reference in New Issue
Block a user