diff --git a/addons/stock/stock.py b/addons/stock/stock.py index e8cdbca3105..f43b877ec60 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -2500,7 +2500,7 @@ class stock_move(osv.osv): 'product_id': move.product_id and move.product_id.id or False, 'quantity': move.product_qty, 'ref': move.picking_id and move.picking_id.name or False, - 'date': time.strftime('%Y-%m-%d'), + 'date': fields.date.context_today(self, cr, uid), 'partner_id': partner_id, 'debit': reference_amount, 'account_id': dest_account_id, @@ -2510,7 +2510,7 @@ class stock_move(osv.osv): 'product_id': move.product_id and move.product_id.id or False, 'quantity': move.product_qty, 'ref': move.picking_id and move.picking_id.name or False, - 'date': time.strftime('%Y-%m-%d'), + 'date': fields.date.context_today(self, cr, uid), 'partner_id': partner_id, 'credit': reference_amount, 'account_id': src_account_id,