first commit
This commit is contained in:
parent
f081245d76
commit
96ef39e2d9
14
__init__.py~
14
__init__.py~
@ -1,14 +0,0 @@
|
|||||||
from trytond.pool import Pool
|
|
||||||
from . import product
|
|
||||||
|
|
||||||
__all__ = ['register']
|
|
||||||
|
|
||||||
|
|
||||||
def register():
|
|
||||||
Pool.register(
|
|
||||||
product.Product,
|
|
||||||
module='smart_vision', type_='model')
|
|
||||||
Pool.register(
|
|
||||||
module='smart_vision', type_='wizard')
|
|
||||||
Pool.register(
|
|
||||||
module='smart_vision', type_='report')
|
|
15
product.py~
15
product.py~
@ -1,15 +0,0 @@
|
|||||||
from trytond.pool import Pool, PoolMeta
|
|
||||||
from trytond.model import ModelView, ModelSql
|
|
||||||
from trytond.model import fields
|
|
||||||
|
|
||||||
|
|
||||||
class Product(metaclass=PoolMeta):
|
|
||||||
'Product'
|
|
||||||
|
|
||||||
__name__ = 'product.product'
|
|
||||||
|
|
||||||
risk = fields.Char("Risk", size=None, required=True)
|
|
||||||
use = fields.Char("Risk", size=None, required=True)
|
|
||||||
main_tecnology = fields.Char("Risk", size=None, required=True)
|
|
||||||
calibration = fields.Boolean("Apply calibration")
|
|
||||||
observation = fields.Text(size=None)
|
|
@ -1,5 +0,0 @@
|
|||||||
[tryton]
|
|
||||||
version=6.0
|
|
||||||
depends:
|
|
||||||
ir
|
|
||||||
xml:
|
|
Loading…
Reference in New Issue
Block a user