Remove OSV and WizardOSV
This commit is contained in:
1 parent
9f54137e95
commit
0077a5404a
3 files changed
+8
-8
No files matched your search
+2
-2
@@ -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, fields
|
||||
|
||||
|
||||
class Category(OSV):
|
||||
class Category(ModelSQL, ModelView):
|
||||
"Product Category"
|
||||
_name = "product.category"
|
||||
_description = __doc__
|
||||
|
||||
+3
-3
@@ -1,13 +1,13 @@
|
||||
#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
|
||||
|
||||
STATES = {
|
||||
'readonly': "active == False",
|
||||
}
|
||||
|
||||
|
||||
class Template(OSV):
|
||||
class Template(ModelSQL, ModelView):
|
||||
"Product Template"
|
||||
_name = "product.template"
|
||||
_description = __doc__
|
||||
@@ -69,7 +69,7 @@ class Template(OSV):
|
||||
Template()
|
||||
|
||||
|
||||
class Product(OSV):
|
||||
class Product(ModelSQL, ModelView):
|
||||
"Product"
|
||||
_name = "product.product"
|
||||
_description = __doc__
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#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
|
||||
from trytond.model.modelstorage import OPERATORS
|
||||
from decimal import Decimal
|
||||
|
||||
@@ -8,7 +8,7 @@ STATES = {
|
||||
'readonly': "active == False",
|
||||
}
|
||||
|
||||
class UomCategory(OSV):
|
||||
class UomCategory(ModelSQL, ModelView):
|
||||
'Product uom category'
|
||||
_name = 'product.uom.category'
|
||||
_description = __doc__
|
||||
@@ -22,7 +22,7 @@ class UomCategory(OSV):
|
||||
UomCategory()
|
||||
|
||||
|
||||
class Uom(OSV):
|
||||
class Uom(ModelSQL, ModelView):
|
||||
'Unit of measure'
|
||||
_name = 'product.uom'
|
||||
_description = __doc__
|
||||
|
||||
Reference in new issue
Block a user