Remove OSV and WizardOSV

This commit is contained in:
Cédric Krier
2009-02-28 17:06:35 +01:00
parent 092e4ffa9c
commit 57fb32aec9
4 changed files with 14 additions and 13 deletions
+3 -3
View File
@@ -1,10 +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.
from trytond.osv import fields, OSV
from trytond.wizard import Wizard, WizardOSV
from trytond.model import ModelView, ModelSQL, fields
from trytond.wizard import Wizard
class OrderPoint(OSV):
class OrderPoint(ModelSQL, ModelView):
"""
Order Point: Provide a way to define a supply policy for each
product on each locations. Order points on warehouse are
+2 -2
View File
@@ -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
class PackingInternal(OSV):
class PackingInternal(ModelSQL, ModelView):
_name = 'stock.packing.internal'
def generate_internal_packing(self, cursor, user, context=None):
+4 -3
View File
@@ -1,9 +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.
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
import datetime
class Product(OSV):
class Product(ModelSQL, ModelView):
_name = "product.product"
order_points = fields.One2Many(
+5 -5
View File
@@ -1,11 +1,11 @@
#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.wizard import Wizard, WizardOSV
from trytond.model import ModelView, ModelSQL, fields
from trytond.wizard import Wizard
import datetime
class PurchaseRequest(OSV):
class PurchaseRequest(ModelSQL, ModelView):
'Purchase Request'
_name = 'purchase.request'
_description = __doc__
@@ -430,7 +430,7 @@ class PurchaseRequest(OSV):
PurchaseRequest()
class CreatePurchaseAskTerm(WizardOSV):
class CreatePurchaseAskTerm(ModelView):
'Create Purchase Ask Term'
_name = 'purchase.request.create_purchase.ask_term'
_description = __doc__
@@ -441,7 +441,7 @@ class CreatePurchaseAskTerm(WizardOSV):
CreatePurchaseAskTerm()
class CreatePurchaseAskParty(WizardOSV):
class CreatePurchaseAskParty(ModelView):
'Create Purchase Ask Party'
_name = 'purchase.request.create_purchase.ask_party'
_description = __doc__