From a768a261e83e3aa1caa45f1109e79f8cbdefab00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 28 Feb 2009 17:04:59 +0100 Subject: [PATCH] Remove OSV and WizardOSV --- forecast.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/forecast.py b/forecast.py index fd426f1bb0..f102499ee3 100644 --- a/forecast.py +++ b/forecast.py @@ -1,7 +1,7 @@ #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.osv import fields, OSV -from trytond.wizard import Wizard, WizardOSV +from trytond.model import ModelView, ModelSQL, fields +from trytond.wizard import Wizard import datetime STATES = { @@ -9,7 +9,7 @@ STATES = { } -class Forecast(OSV): +class Forecast(ModelSQL, ModelView): "Stock Forecast" _name = "stock.forecast" _description = __doc__ @@ -153,7 +153,7 @@ class Forecast(OSV): return new_ids Forecast() -class ForecastLine(OSV): +class ForecastLine(ModelSQL, ModelView): 'Stock Forecast Line' _name = 'stock.forecast.line' _description = __doc__ @@ -291,7 +291,7 @@ class ForecastLine(OSV): ForecastLine() -class ForecastCompleteAsk(WizardOSV): +class ForecastCompleteAsk(ModelView): _name = 'stock.forecast.complete.ask' from_date = fields.Date('From Date', required=True) @@ -300,7 +300,7 @@ class ForecastCompleteAsk(WizardOSV): ForecastCompleteAsk() -class ForecastCompleteChoose(WizardOSV): +class ForecastCompleteChoose(ModelView): _name = 'stock.forecast.complete.choose' products = fields.Many2Many(