From 0077a5404a4022ee7da1d59a97ca9ae166a4535a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 28 Feb 2009 17:00:24 +0100 Subject: [PATCH] Remove OSV and WizardOSV --- category.py | 4 ++-- product.py | 6 +++--- uom.py | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/category.py b/category.py index 4abeb8efa7..3b33f2ab28 100644 --- a/category.py +++ b/category.py @@ -1,9 +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.model import ModelView, ModelSQL, fields -class Category(OSV): +class Category(ModelSQL, ModelView): "Product Category" _name = "product.category" _description = __doc__ diff --git a/product.py b/product.py index 32be8d15b5..837bcab813 100644 --- a/product.py +++ b/product.py @@ -1,13 +1,13 @@ #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.model import ModelView, ModelSQL, fields STATES = { 'readonly': "active == False", } -class Template(OSV): +class Template(ModelSQL, ModelView): "Product Template" _name = "product.template" _description = __doc__ @@ -69,7 +69,7 @@ class Template(OSV): Template() -class Product(OSV): +class Product(ModelSQL, ModelView): "Product" _name = "product.product" _description = __doc__ diff --git a/uom.py b/uom.py index 536c2ca0d2..80bf6c51f0 100644 --- a/uom.py +++ b/uom.py @@ -1,6 +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. -from trytond.osv import fields, OSV +from trytond.model import ModelView, ModelSQL, fields from trytond.model.modelstorage import OPERATORS from decimal import Decimal @@ -8,7 +8,7 @@ STATES = { 'readonly': "active == False", } -class UomCategory(OSV): +class UomCategory(ModelSQL, ModelView): 'Product uom category' _name = 'product.uom.category' _description = __doc__ @@ -22,7 +22,7 @@ class UomCategory(OSV): UomCategory() -class Uom(OSV): +class Uom(ModelSQL, ModelView): 'Unit of measure' _name = 'product.uom' _description = __doc__