From cd90a0d2be54d6c2fd6416235f1af1a65aa6c7d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 28 Feb 2009 16:59:34 +0100 Subject: [PATCH] Remove OSV and WizardOSV --- country.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/country.py b/country.py index 79b5fbf57a..4042715094 100644 --- a/country.py +++ b/country.py @@ -1,11 +1,12 @@ -#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 +#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.model import ModelView, ModelSQL, fields STATES = { 'readonly': "active == False", } -class Country(OSV): +class Country(ModelSQL, ModelView): 'Country' _name = 'country.country' _description = __doc__ @@ -61,7 +62,7 @@ class Country(OSV): Country() -class Subdivision(OSV): +class Subdivision(ModelSQL, ModelView): "Subdivision" _name = 'country.subdivision' _description = __doc__