diff --git a/stock.py b/stock.py index bdc2ffbbb5..b0d5b322b0 100644 --- a/stock.py +++ b/stock.py @@ -1,12 +1,9 @@ #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 -import datetime +from trytond.model import ModelView, ModelSQL, fields -class Location(OSV): +class Location(ModelSQL, ModelView): "Stock Location" _name = 'stock.location' sequence = fields.Integer('Sequence', states= {'readonly': "not active"})