Reviewers: ,
Please review this at http://codereview.tryton.org/167005/ Affected files: M forecast.py M tests/test_stock_forecast.py Index: forecast.py =================================================================== --- a/forecast.py +++ b/forecast.py @@ -1,7 +1,6 @@ #This file is part of Tryton. The COPYRIGHT file at the top level of #this repository contains the full copyright notices and license terms. import datetime -import time from dateutil.relativedelta import relativedelta import itertools from trytond.model import ModelView, ModelWorkflow, ModelSQL, fields @@ -545,7 +544,6 @@ def _complete(self, data): pool = Pool() - forecast_obj = pool.get('stock.forecast') forecast_line_obj = pool.get('stock.forecast.line') product_obj = pool.get('product.product') Index: tests/test_stock_forecast.py =================================================================== --- a/tests/test_stock_forecast.py +++ b/tests/test_stock_forecast.py @@ -64,7 +64,7 @@ ''' Test create_moves. ''' - with Transaction().start(DB_NAME, USER, CONTEXT) as transaction: + with Transaction().start(DB_NAME, USER, CONTEXT): category_id = self.category.create({ 'name': 'Test create_moves', }) -- [email protected] mailing list
