diff --git a/product.py b/product.py
index 24a8144..4ed7151 100644
--- a/product.py
+++ b/product.py
@@ -155,6 +155,9 @@ class Template(metaclass=PoolMeta):
warranty = fields.Integer("Warranty")
#### calibration parameters
+ measuring_range = fields.Selection([
+ ('dioptria', "Dioptria"),
+ ('mmhg', "mmHg")], "Rango de Medición")
MEP = fields.Float("MEP", states={'required': Eval('calibration', False)},)
uncertainy_pattern = fields.Float("Uncertainy Pattern", states={'required': Eval('calibration', True)},
help="Agregar valores separados por ',' Ej:-5,+5,-10,+10")
@@ -189,6 +192,11 @@ class Template(metaclass=PoolMeta):
'invisible': ~Eval('calibration')},)
]
+ @classmethod
+ @fields.depends('measuring_range')
+ def default_measuring_range(self):
+ return 'dioptria'
+
@classmethod
@fields.depends('temperature_min')
def default_temperature_min(self):
diff --git a/view/template_form.xml b/view/template_form.xml
index feb07fe..93a24be 100644
--- a/view/template_form.xml
+++ b/view/template_form.xml
@@ -61,6 +61,9 @@ this repository contains the full copyright notices and license terms. -->
+
+
+