diff --git a/lims_management/demo/z_analysis_demo.xml b/lims_management/demo/z_analysis_demo.xml index 2dbe6ca..0117a16 100644 --- a/lims_management/demo/z_analysis_demo.xml +++ b/lims_management/demo/z_analysis_demo.xml @@ -19,25 +19,6 @@ - - - - male - 18 - 99 - 4.5 - 5.9 - millones/µL - - - - female - 18 - 99 - 4.0 - 5.2 - millones/µL - @@ -55,21 +36,6 @@ - - - - 0 - 200 - mg/dL - - - - - - 0 - 100 - mg/dL - diff --git a/lims_management/models/__init__.py b/lims_management/models/__init__.py index 0a4252f..8e58433 100644 --- a/lims_management/models/__init__.py +++ b/lims_management/models/__init__.py @@ -2,7 +2,6 @@ from . import analysis_parameter from . import product_template_parameter from . import parameter_range -from . import analysis_range from . import product from . import partner from . import sale_order diff --git a/lims_management/models/__pycache__/__init__.cpython-312.pyc b/lims_management/models/__pycache__/__init__.cpython-312.pyc index 925a1d9..4830c5f 100644 Binary files a/lims_management/models/__pycache__/__init__.cpython-312.pyc and b/lims_management/models/__pycache__/__init__.cpython-312.pyc differ diff --git a/lims_management/models/__pycache__/product.cpython-312.pyc b/lims_management/models/__pycache__/product.cpython-312.pyc index 6f3e4b1..a8b31aa 100644 Binary files a/lims_management/models/__pycache__/product.cpython-312.pyc and b/lims_management/models/__pycache__/product.cpython-312.pyc differ diff --git a/lims_management/models/analysis_range.py b/lims_management/models/analysis_range.py deleted file mode 100644 index c527226..0000000 --- a/lims_management/models/analysis_range.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -from odoo import models, fields - -class LimsAnalysisRange(models.Model): - _name = 'lims.analysis.range' - _description = 'Rangos de Referencia para Análisis Clínicos' - - analysis_id = fields.Many2one( - 'product.template', - string="Análisis", - required=True, - ondelete='cascade' - ) - gender = fields.Selection([ - ('male', 'Masculino'), - ('female', 'Femenino'), - ('both', 'Ambos') - ], string="Género", default='both') - - age_min = fields.Integer(string="Edad Mínima", default=0) - age_max = fields.Integer(string="Edad Máxima", default=99) - - min_value = fields.Float(string="Valor Mínimo") - max_value = fields.Float(string="Valor Máximo") - - unit_of_measure = fields.Char(string="Unidad de Medida") diff --git a/lims_management/models/product.py b/lims_management/models/product.py index a60c044..c0a643b 100644 --- a/lims_management/models/product.py +++ b/lims_management/models/product.py @@ -22,12 +22,6 @@ class ProductTemplate(models.Model): string="Especificaciones Técnicas" ) - value_range_ids = fields.One2many( - 'lims.analysis.range', - 'analysis_id', - string="Rangos de Referencia" - ) - parameter_ids = fields.One2many( 'product.template.parameter', 'product_tmpl_id', diff --git a/lims_management/security/ir.model.access.csv b/lims_management/security/ir.model.access.csv index 00a5e97..36ea507 100644 --- a/lims_management/security/ir.model.access.csv +++ b/lims_management/security/ir.model.access.csv @@ -5,7 +5,6 @@ access_product_template_parameter_user,product.template.parameter.user,model_pro access_product_template_parameter_manager,product.template.parameter.manager,model_product_template_parameter,group_lims_admin,1,1,1,1 access_lims_parameter_range_user,lims.parameter.range.user,model_lims_parameter_range,base.group_user,1,0,0,0 access_lims_parameter_range_manager,lims.parameter.range.manager,model_lims_parameter_range,group_lims_admin,1,1,1,1 -access_lims_analysis_range_user,lims.analysis.range.user,model_lims_analysis_range,base.group_user,1,1,1,1 access_sale_order_receptionist,sale.order.receptionist,sale.model_sale_order,group_lims_receptionist,1,1,1,0 access_stock_lot_user,stock.lot.user,stock.model_stock_lot,base.group_user,1,1,1,1 access_lims_test_user,lims.test.user,model_lims_test,base.group_user,1,1,1,1 diff --git a/lims_management/views/analysis_views.xml b/lims_management/views/analysis_views.xml index d1a6e26..87df2f7 100644 --- a/lims_management/views/analysis_views.xml +++ b/lims_management/views/analysis_views.xml @@ -1,22 +1,6 @@ - - - lims.analysis.range.tree - lims.analysis.range - - - - - - - - - - - - product.template.form.lims @@ -36,9 +20,6 @@ - -