mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[IMP] if no date on statement line, statement try to use ml_maturity_date or satement date
This commit is contained in:
@@ -122,7 +122,7 @@ class AccountPaymentPopulateStatement(orm.TransientModel):
|
||||
'account_id': line.move_line_id.account_id.id,
|
||||
'statement_id': statement.id,
|
||||
'ref': line.communication,
|
||||
'date': line.date,
|
||||
'date': line.date or line.ml_maturity_date or statement.date,
|
||||
}, context=context)
|
||||
|
||||
line_obj.write(cr, uid, [line.id], {'bank_statement_line_id': st_line_id})
|
||||
|
||||
Reference in New Issue
Block a user