[FIX] account_payment: When importing a payment line using wizard in Bank Statement...
authorRavi Gohil (Open ERP) <rgo@tinyerp.com>
Thu, 15 Mar 2012 09:43:32 +0000 (15:13 +0530)
committerRavi Gohil (Open ERP) <rgo@tinyerp.com>
Thu, 15 Mar 2012 09:43:32 +0000 (15:13 +0530)
bzr revid: rgo@tinyerp.com-20120315094332-zxkca6t33kb5ju9x

addons/account_payment/wizard/account_payment_populate_statement.py

index 093dc1d..f34939b 100644 (file)
@@ -113,6 +113,7 @@ class account_payment_populate_statement(osv.osv_memory):
                 'statement_id': statement.id,
                 'ref': line.communication,
                 'voucher_id': voucher_id,
+                'date': line.date or time.strftime('%Y-%m-%d'),
                 }, context=context)
 
             line_obj.write(cr, uid, [line.id], {'bank_statement_line_id': st_line_id})