changes in writings
This commit is contained in:
parent
a95058f375
commit
e829b2507d
@ -1,6 +1,6 @@
|
||||
from trytond.pool import Pool
|
||||
from . import product
|
||||
from . import machine
|
||||
|
||||
|
||||
__all__ = ['register']
|
||||
|
||||
@ -9,7 +9,3 @@ def register():
|
||||
Pool.register(
|
||||
product.Product,
|
||||
module='optical_equipment', type_='model')
|
||||
Pool.register(
|
||||
module='optical_equipment', type_='wizard')
|
||||
Pool.register(
|
||||
module='optical_equipment', type_='report')
|
||||
|
10
product.py
10
product.py
@ -1,17 +1,19 @@
|
||||
#This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
#txhis repository contains the full copyright notices and license terms
|
||||
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.model import ModelView, ModelSql
|
||||
from trytond.model import ModelView, ModelSQL
|
||||
from trytond.model import fields
|
||||
|
||||
__all__ = [Product]
|
||||
__all__ = ['Product']
|
||||
|
||||
_RISK = [(None, '')]
|
||||
_USE = [(None, '')]
|
||||
_BIOMEDICAL_CLASS = [(None, '')]
|
||||
_MAIN_TECNOLOGY = [(None, '')]
|
||||
|
||||
class Product(metaclass=PoolMeta):
|
||||
class Product(ModelSQL, ModelView, metaclass=PoolMeta):
|
||||
'Product'
|
||||
|
||||
__name__ = 'product.template'
|
||||
|
||||
machine = fields.Boolean('It is machine')
|
||||
|
@ -3,4 +3,6 @@ version=6.0
|
||||
depends:
|
||||
ir
|
||||
product
|
||||
country
|
||||
xml:
|
||||
product.xml
|
Loading…
Reference in New Issue
Block a user