Remove OSV and WizardOSV
This commit is contained in:
+3
-4
@@ -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
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user