It set the context on the products selection so the user can see the quantity that will be set. As it is possible to search on this quantity, there is no more the need to prefill the selection with products having a quantity. Also there is no need to have two steps for the wizard as the context is computed dynamically.
19 lines
518 B
Python
19 lines
518 B
Python
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
# this repository contains the full copyright notices and license terms.
|
|
|
|
from trytond.pool import Pool
|
|
|
|
from . import forecast
|
|
|
|
|
|
def register():
|
|
Pool.register(
|
|
forecast.Forecast,
|
|
forecast.ForecastLine,
|
|
forecast.ForecastLineMove,
|
|
forecast.ForecastCompleteAsk,
|
|
module='stock_forecast', type_='model')
|
|
Pool.register(
|
|
forecast.ForecastComplete,
|
|
module='stock_forecast', type_='wizard')
|