From 33076f73949766593db94160ad3f6f4f9030f421 Mon Sep 17 00:00:00 2001 From: Jerther Date: Wed, 5 Apr 2017 05:31:19 -0400 Subject: [PATCH] [FIX] stock: set AML date same as move date Based on v9 fix: f6b6eb906de780714b97b7ca15784d319300548b Closes #16217 --- addons/stock_account/stock_account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,