From a0eda5d15cb6f9ada9240631330bb477c80c064c Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 27 Aug 2013 08:20:04 +0200 Subject: [PATCH] [IMP] if no date on statement line, statement try to use ml_maturity_date or satement date --- statement_voucher_killer/voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statement_voucher_killer/voucher.py b/statement_voucher_killer/voucher.py index 9b38772c..6cc27608 100644 --- a/statement_voucher_killer/voucher.py +++ b/statement_voucher_killer/voucher.py @@ -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})