[MERGE] OPW 574251: account_voucher: imported statement line from invoice should...
authorXavier ALT <xal@openerp.com>
Thu, 29 Nov 2012 11:02:12 +0000 (12:02 +0100)
committerXavier ALT <xal@openerp.com>
Thu, 29 Nov 2012 11:02:12 +0000 (12:02 +0100)
  backport of v6.1 revid: xal@openerp.com-20120828105811-2y6dawc747dhhj77

bzr revid: xal@openerp.com-20121129110212-xsc6ld1pm5fwtw6u

addons/account_voucher/wizard/account_statement_from_invoice.py

index 9952486..0f7c21f 100644 (file)
@@ -118,7 +118,7 @@ class account_statement_from_invoice_lines(osv.osv_memory):
                 'statement_id': statement_id,
                 'ref': line.ref,
                 'voucher_id': voucher_id,
-                'date': time.strftime('%Y-%m-%d'), #time.strftime('%Y-%m-%d'), #line.date_maturity or,
+                'date': statement.date,
             }, context=context)
         return {'type': 'ir.actions.act_window_close'}