From cf8e1959b71c1abcd856845467e8aba6263fd064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 28 Feb 2009 16:58:51 +0100 Subject: [PATCH] Remove OSV and WizardOSV --- purchase.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/purchase.py b/purchase.py index 7459c1cda2..9e3a625603 100644 --- a/purchase.py +++ b/purchase.py @@ -1,11 +1,10 @@ #This file is part of Tryton. The COPYRIGHT file at the top level of #this repository contains the full copyright notices and license terms. "Purchase" - -from trytond.osv import fields, OSV +from trytond.model import ModelView, ModelSQL, fields -class Purchase(OSV): +class Purchase(ModelSQL, ModelView): _name = "purchase.purchase" def __init__(self): @@ -39,7 +38,7 @@ class Purchase(OSV): Purchase() -class PurchaseLine(OSV): +class PurchaseLine(ModelSQL, ModelView): _name = 'purchase.line' analytic_accounts = fields.Many2One('analytic_account.account.selection', @@ -216,7 +215,7 @@ class PurchaseLine(OSV): PurchaseLine() -class Account(OSV): +class Account(ModelSQL, ModelView): _name = 'analytic_account.account' def delete(self, cursor, user, ids, context=None):