From c80a154afd3898e0a979a7eecce5d58932f5598e Mon Sep 17 00:00:00 2001 From: Luis Ernesto Portillo Zaldivar Date: Tue, 15 Jul 2025 12:48:40 -0600 Subject: [PATCH] feat(#51): Task 7 completada - Eliminar modelo obsoleto lims.analysis.range --- lims_management/demo/z_analysis_demo.xml | 34 ------------------ lims_management/models/__init__.py | 1 - .../__pycache__/__init__.cpython-312.pyc | Bin 562 -> 524 bytes .../__pycache__/product.cpython-312.pyc | Bin 3188 -> 3046 bytes lims_management/models/analysis_range.py | 26 -------------- lims_management/models/product.py | 6 ---- lims_management/security/ir.model.access.csv | 1 - lims_management/views/analysis_views.xml | 19 ---------- 8 files changed, 87 deletions(-) delete mode 100644 lims_management/models/analysis_range.py 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 925a1d9cb15e333e06b2eeb8b6c0d9e705cd8e0d..4830c5f06a0b09f480c71263186ae837409dc067 100644 GIT binary patch delta 102 zcmdnQ(!;`gnwOW00SJ^9mSq@DHSp)d2wZ0~o{r delta 115 zcmeBS*~G$onwOW00SIPKD$DSj$ScX%F;Tr%AcY}?JBJ~cJBpi;p^`_Fcj5|vPQJvv z#GK0F%;Jgfau|6gM>Co*74c5)Vf5w_0_tZ3;$pSQ4;h7}W$rSFf|0~s25~TwyvLwe IBmh(a0MG#)umAu6 diff --git a/lims_management/models/__pycache__/product.cpython-312.pyc b/lims_management/models/__pycache__/product.cpython-312.pyc index 6f3e4b1f27867da07a60ef80550919edb9541f90..a8b31aafc3e159ac4bd6a6449f041f9b00591874 100644 GIT binary patch delta 444 zcmew&@l2fWG%qg~0}%XOP?m9*V z+$~nOoczR+BCtWMAOWuA{Ji3lqQuO+;v#9FK#@FY8lOib24*_ z^%CXwtASW*NwnH40!m7JefTvC*n znO9sS0~9Dy01_)1ia>@INrMOu7y(jWtTfq&D_lxkZ9>}g{E7KDIAm{dh~D5={ld;7 z&eq`nfoJj}uC0u+lOwpDy$wMc;pY6}u*uC&Da}c>D>4O2FoFzI01_XV85tR$GpJl- aP`S&X{e{Jb(Sr$Sc+SL}uM8kI*aQG0y@gEx 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 @@ - -