diff --git a/addons/stock_account/stock_account.py b/addons/stock_account/stock_account.py index bee410ae3ca..aadb89d614d 100644 --- a/addons/stock_account/stock_account.py +++ b/addons/stock_account/stock_account.py @@ -239,7 +239,7 @@ class stock_quant(osv.osv): 'quantity': qty, 'product_uom_id': move.product_id.uom_id.id, 'ref': move.picking_id and move.picking_id.name or False, - 'date': move.date, + 'date': fields.date.context_today(self, cr, uid, context=context), 'partner_id': partner_id, 'debit': valuation_amount > 0 and valuation_amount or 0, 'credit': valuation_amount < 0 and -valuation_amount or 0, @@ -251,7 +251,7 @@ class stock_quant(osv.osv): 'quantity': qty, 'product_uom_id': move.product_id.uom_id.id, 'ref': move.picking_id and move.picking_id.name or False, - 'date': move.date, + 'date': fields.date.context_today(self, cr, uid, context=context), 'partner_id': partner_id, 'credit': valuation_amount > 0 and valuation_amount or 0, 'debit': valuation_amount < 0 and -valuation_amount or 0,