[FIX] stock: set AML date same as move date

Based on v9 fix: f6b6eb906de780714b97b7ca15784d319300548b

Closes #16217
This commit is contained in:
Jerther 2017-04-05 05:31:19 -04:00 committed by Martin Trigaux
parent 52c58fd218
commit 33076f7394
1 changed files with 2 additions and 2 deletions

View File

@ -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,