Remove OSV and WizardOSV

This commit is contained in:
Cédric Krier
2009-02-28 17:03:00 +01:00
parent 6f18ef9175
commit 92a617bf6f
2 changed files with 5 additions and 7 deletions
+3 -4
View File
@@ -1,10 +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 Invoice(OSV):
class Invoice(ModelSQL, ModelView):
_name = 'account.invoice'
def write(self, cursor, user, ids, vals, context=None):
@@ -28,7 +27,7 @@ class Invoice(OSV):
Invoice()
class InvoiceLine(OSV):
class InvoiceLine(ModelSQL, ModelView):
_name = 'account.invoice.line'
def __init__(self):
+2 -3
View File
@@ -1,10 +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 Purchase(OSV):
class Purchase(ModelSQL, ModelView):
_name = 'purchase.purchase'
invoice_lines = fields.Many2Many('account.invoice.line',