From cca6b804af9d9b50b67b013c3a4d973acde3cdaf Mon Sep 17 00:00:00 2001 From: Magno Costa - Akretion Date: Wed, 13 Jul 2016 13:25:07 -0300 Subject: [PATCH] [FIX] Missing to pass domain. --- .../wizard/stock_valuation_history.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/l10n_br_stock_account_report/wizard/stock_valuation_history.py b/l10n_br_stock_account_report/wizard/stock_valuation_history.py index 65f06a814312..b9464ee69ba2 100644 --- a/l10n_br_stock_account_report/wizard/stock_valuation_history.py +++ b/l10n_br_stock_account_report/wizard/stock_valuation_history.py @@ -36,8 +36,8 @@ def compute(self, cr, uid, ids, date, context=None): ] result = self.pool.get('stock.history').read_group( - cr, uid, domain=[], fields=fields, groupby=group_by, - context=context) + cr, uid, domain=[['date', '<=', date]], fields=fields, + groupby=group_by, context=context) return result