add default fields
This commit is contained in:
parent
f1371f19c4
commit
ed79556524
32
product.py
32
product.py
@ -37,3 +37,35 @@ class Product(metaclass=PoolMeta):
|
||||
health_register = fields.Char(
|
||||
"Serial", size=None, required=True)
|
||||
refurbish = fields.Boolean('Refurbish')
|
||||
|
||||
@staticmethod
|
||||
def default_machine():
|
||||
return False
|
||||
|
||||
@staticmethod
|
||||
def default_risk():
|
||||
return None
|
||||
|
||||
@staticmethod
|
||||
def default_use():
|
||||
return None
|
||||
|
||||
@staticmethod
|
||||
def default_biomedical_class():
|
||||
return None
|
||||
|
||||
@staticmethod
|
||||
def default_main_tecnology():
|
||||
return None
|
||||
|
||||
@staticmethod
|
||||
def default_calibration():
|
||||
return False
|
||||
|
||||
@staticmethod
|
||||
def default_refurbish():
|
||||
return False
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user